Re: basic questions about enum
Thanks angedelamort,
1.
Can you provide a link from MSDN which describes DisplayName attribute please?
Here is what I searched. I contains too many stuff and from the first ones, I can not find related stuff
http://search.msdn.microsoft.com/Def...nt=&lang=en-us
2.
Quote:
Originally Posted by angedelamort
Here an alternative for your "switch" case problem. Instead of doing it "C++ like", why don't you use C# attributes?
[code]
// this class already exist, but is shown as example
public class DisplayNameAttribute : Attribute
{
private string mDisplayName = null;
public string DisplayName { get; set; }
}
The above code means DisplayName attribute is an CLR internal implemented class, whose internal name is DisplayNameAttribute, inherits from Attribute class?
regards,
George