随笔分类 -  C#

C#读写内置类型的数据时是否原子操作
摘要:Reads and writes of the following data types are atomic: bool, char, byte, sbyte, short, ushort, uint, int, float, and reference types. Reads and writ 阅读全文

posted @ 2017-06-12 22:26 lakeone 阅读(1448) 评论(0) 推荐(1)

C# 嵌套类
摘要:C#可以在一个类中定义另一个类。如果嵌套的类声明为私有,就不能在包含类外部实例化嵌套类。 使用嵌套类的一个原因是嵌套类可以访问其包含类的私有和受保护成员。 结果: 阅读全文

posted @ 2017-01-30 23:20 lakeone 阅读(1009) 评论(0) 推荐(0)

导航