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;
		}
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }