XSD offers a wide range of types and simple structs.
XSD提供了大量的类型以及简单的结构。
When defining structs, you want to make sure that you are creating types that are readable.
定义struct时,要确保所创建的类型是可读的。
But, notice first that the MyDelegate type breaks a rule, namely that structs cannot derive from other types other than System.ValueType.
但是,首先要注意的是,MyDelegate类型打破了这个规则,即它的结构只能从System . ValueType来获得,而不能从其他类型获得。
Structs are value types which means they are copied when they are passed around.
结构是值类型,这意味着当他们被传来传去,他们被复制。
Generics permit classes, structs, interfaces, delegates, and methods to be parameterized by the types of data they store and manipulate.
泛型允许类,结构,接口,代理还有方法被他们存储和操作数据类型参数化。
Avoid generic containers in combination with value types, including structs.
避免泛型容器与结构等类型相结合。
However, like reference types, structs can implement interfaces.
但与引用类型相同的是,结构也可以实现接口。
Structs are value types and classes are reference types.
结构为实值型别,而类别则是参考型别。
Structs are value types and classes are reference types.
结构为实值型别,而类别则是参考型别。
应用推荐