public override object FromStringValue(Type type, string str) { if(type !=typeof(FlexiblePropertyEnum)) throw new Exception(Resources.ExceptionDesignerAttributeInvalidType); FlexibleProperty flexible= new FlexiblePropertyEnum(_enumType); flexible.FromStringValue(str); return flexible; }
protected override void CloneProperties(FlexibleProperty flexProp) { FlexiblePropertyEnum prop = (FlexiblePropertyEnum)flexProp; prop._enumType = _enumType; prop._value = _value; prop._definitionName = _definitionName; prop._definitionMember = _definitionMember; base.CloneProperties(flexProp); }
public override object FromStringValue(Type type, string str) { if (type != typeof(FlexiblePropertyEnum)) { throw new Exception(Resources.ExceptionDesignerAttributeInvalidType); } FlexibleProperty flexible = new FlexiblePropertyEnum(_enumType); flexible.FromStringValue(str); return(flexible); }