I often use enums like
public enum Side { Left, Top, Right, Bottom };
or
public enum Direction { Left, Up, Right, Down };
Every time I describe the enum again. Is there a standard enum of this kind in .NET?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not quite the same, but I know of the
System.Windows.Forms.AnchorStylesenumeration.http://msdn.microsoft.com/en-us/library/system.windows.forms.anchorstyles.aspx
Otherwise, I’d say not – add it to your own common library. You also have to consider the cost of taking dependencies (even on .NET Framework stuff), because of things like portability. I wouldn’t take one on WinForms unless you are already depending on WinForms.