I was just wondering what is the opposite of static? Im looking for a word or terminology to describe it.
eg:
#region Members
#region开发者_运维技巧 Static
private static Settings _Instance = null;
#endregion Static
#endregion Members
#region Properties
#region Static
/// <summary>
/// Gets the current instance of the settings class
/// </summary>
public static Settings Instance
{
get
{
if (_Instance == null)
{
_Instance = new Settings();
}
return Settings._Instance;
}
}
#endregion Static
#region Non Static?
#endregion Non Static?
#endregion Properties
If Im seperating my code in to static and non-static regions what should I call my non-static region?
is it non-static? or is there an actual word to descripe methods and properties that are not static
"Instance" usually - "instance methods", "instance variables" etc. Non-static works too, if you find that simpler.
I'm not sure I'd really put all those regions in though...
Non-static would be correct. The word "instance" is more commonly used to describe a particular occurrence of a object or class in memory.
精彩评论