Ejemplo n.º 1
0
        public static object GetPropertyObject(object receiver, ReadSettings settings,
                                               ObjectPropertyInfo info, string value, Type objType)
        {
            ITkTypeConverter converter = info.Converter ?? TkTypeDescriptor.GetConverter(objType);

            ObjectUtil.AssertTypeConverter(receiver, objType, converter, info.PropertyName);

            object obj = ObjectUtil.InternalGetValue(objType, value, info.Attribute.DefaultValue,
                                                     settings, converter);

            return(obj);
        }