|
|
Stories recently tagged with 'Enum'
|
|
published 1 month, 4 days ago, submitted by
crpietschmann
1 month, 5 days ago
pietschsoft.com — Extension Methods are one of the coolest features that have been added in .NET 3.5. I've heard arguments that there is no reason to use them, and the only reason Microsoft added them is to enable the ability to buid LINQ. Well, I do not entirely agree with that statement; in fact, I have found a cool way to use Extension Methods to enhance the System.Enum object since it cannot be inherited. Even though Enum can not be inherited, it can be extended using Extension Methods. Here's the code to an Extension Method that extends the LocalizationMarket Enum with the ToDescriptionString() method that returns the DescriptionAttributes value for the given enum value. read more...
3 comments
|
category: Tips & Tricks | Views: 397
|
|
tags:
.net3.5, C#, ExtensionMethods, Tips, Enum | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
manovich
10 months, 24 days ago
dotnettipoftheday.org — There is one thing you should watch out for when using enumerations. You can cast any integer to an Enum type and you will not get an exception message. read more...
add a comment
|
category: C# | Views: 2
|
|
tags:
Enum, C# | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
KirillOsenkov
11 months, 6 days ago
kirillosenkov.blogspot.com — ... or why do we need the "where T: enum" generic constraint.
Kirill Osenkov posts a working sample of a combobox for choosing a value from enum's available values. It is automatically filled with values of the enumeration and has a strongly typed Value property. read more...
add a comment
|
category: C# | Views: 18
|
|
tags:
Generics, ComboBox, C#, Enum | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
published 1 year, 7 months ago, submitted by
fatdaveh
1 year, 7 months ago
geekzilla.co.uk — A quick and easy tip for converting strings back to Enum types. read more...
2 comments
|
category: C# | Views: 3
|
|
tags:
C#, Enum | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
published 1 year, 11 months ago, submitted by
jfollas
1 year, 11 months ago
diditwith.net — Dustin Campbell (Developer Express' Senior "Whipping Boy") discusses improvements that should be made in order to round out the Enumeration data type in .NET (to provide for both increased functionality and improved readability of code that uses enums). read more...
add a comment
|
category: C# | Views: 0
|
|
tags:
Enum, .net2.0, MarkMiller, C#, CodeRush | tag it
Everyones tags: | Your tags: | |
|
|
|
|

Sponsored Link: www.carlist.ie
Ads via The Lounge
|