¡@

Home 

c# Programming Glossary: roofstyle

Extending Enums, Overkill?

http://stackoverflow.com/questions/3015893/extending-enums-overkill

the following with custom attributes applied. public enum RoofStyle DisplayText Glass Top StringValue GTR Glass DisplayText Convertible.. like so StringBuilder sb new StringBuilder sb.Append car.RoofStyle.GetStringValue sb.Append car.TireSize.GetStringValue sb.Append.. get Enum Value from StringValue for Deserialization car.RoofStyle Enums.GetCode RoofStyle EDIString.Substring 4 3 Defined as public..