1.string str = “”和string str = null的区别?
前者有一个空字符串的内存空间,后者没有内存空间。
2.在dotnet中类(class)和结构(struct)的异同?
异——
结构:值类型、
类:引用类型、
同——
1.基类型都是对象(object)
2.
1.string str = “”和string str = null的区别?
前者有一个空字符串的内存空间,后者没有内存空间。
2.在dotnet中类(class)和结构(struct)的异同?
异——
结构:值类型、
类:引用类型、
同——
1.基类型都是对象(object)
2.