Jeff Garoutte

c# .net and anything else that happens across my desk

Enum - the good, the bad, the ugly and how to kill them

The blessed enumeration I remember when I first learned about enumerations; they opened a whole world of easy coding and I think they have their place….CommandType anyone?  But really, let's kill them. How often have you seen this… enum StatusEnum { Active, Inactive, New, Deleted } .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .cs... [More]
Posted: Jun 17 2008, 09:05 by jeff | Comments (10) RSS comment feed |
Filed under: General
Tags: ,
Social Bookmarks: E-mail | Kick it! | DZone it! | del.icio.us

Snippets - Prop

If you have ever typed prop and hit tab twice in Visual Studio 2005 or 2008, you have used a snippet even if you do not know a snippet is.  In VS2005 I used the prop snippet all the time to create a field and property automatically for me.  The snippet goodness continued in Visual Studio 2008, except... With the new property definition public bool IsVaild{ get; set; } .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monos... [More]
Posted: Jun 09 2008, 01:51 by jeff | Comments (0) RSS comment feed |
Filed under: Visual Studio
Social Bookmarks: E-mail | Kick it! | DZone it! | del.icio.us