The collapse and expand feature can be used for advantage with good declaration of regions
For example:
namespace BlogExample_WinAppOne
{
class ClassTeam
{
#region declarations
public enum playerType { ClassA, ClassB, ClassC, Contract }
#endregion
#region properties
public playerType PlayerType
{
get { return PlayerType; }
set
{
PlayerType = value;
}
}
#endregion
#region public methods
public string SetPlayer
{
}
#endregion
}
}
Would look like the following when collapsed:
Please share your thoughts on effective usage of #region
No comments:
Post a Comment