Beispiel #1
0
 public EnumDescriptor(T value, string text)
 {
     Tracer.Assert(!(value is Enum) || EnumHelper.IsValid(value));
     this.Value = value;
     this.Text  = text;
 }
Beispiel #2
0
 void IFieldSerializer <PinData> .SetTextValue(ref PinData data, string text)
 {
     data.PinSide = EnumHelper.Parse <PinSide>(text, this.DefaultValue);
 }