Does it make sense to define a struct with a reference type member?
问题 Is there any sense in defining a struct with a reference type member (and not defining it as a class)? For example, to define this struct: public struct SomeStruct { string name; Int32 place; } I asking because I know that a struct is a value type, and to define in it some reference type does not make any sense. Am I right? Can someone explain this? 回答1: Nine times out of ten, you should be creating a class rather than a structure in the first place. Structures and classes have very different