Enums, Enum Sets, parsing n' stuff

Posted by: Rick Strahls WebLog, on 30 Jun 2006 | View original | Bookmarked: 0 time(s)

Enumerated types (Enums) are a great thing especially when you’re coming from a background that didn’t have them as I do (and always cursed it back then). Enums allow you to easily set up ‘known values’ for an property or field that takes a fixed number of known values. Without Enums I used to use value codes (1 = this, 2 = that etc.) which is both cryptic to manage and doesn’t provide helpful information at runtime.   Enums are easy enough to create and use when...

Advertisement
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1382 | Hits: 102

Similar Posts

  • Using enum strings with NHibernate persistence - level 400 more
  • Binding a ComboBox to Enum Values with RadControls for Silverlight more
  • VB Curiodities #1: Enum, Enum, my kingdom for an Enum.Parse more

News Categories

.NET | ADO.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Community Server | dasBlog | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD