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