What happens with Unused Class Properties
问题 I am interested to know what happens with unused properties of a class when an object is instantiated? Are there performance hits for having additional unused properties? What about complex properties that are accessing the database, but I'm not using them, are they still being loaded? 回答1: Yes, they are still in memory with default values for the types. Any property sets called will increase memory usage on reference types, whether get is called or not. 来源: https://stackoverflow.com