/ Published in: C#
Usefull class property using enum type instead of int's. For example: if (ActionType == CurrActionType.create){} plain english is easier to read than if (ActionType == 0){} What was 0 again?
Expand |
Embed | Plain Text
public enum CurrActionType { view, edit, create } private CurrActionType currActionType; public CurrActionType ActionType { get { return currActionType; } set { currActionType = value; } }
You need to login to post a comment.
