Beispiel #1
0
        protected static bool IsValuePropertyType(PropertyWrapperType t)
        {
            bool isValueType = false;

            switch (t)
            {
            case PropertyWrapperType.MutableContainerProperty:
            case PropertyWrapperType.StructMutableContainerProperty:
            case PropertyWrapperType.StructEnumListProperty:
                isValueType = true;
                break;
            }
            return(isValueType);
        }
Beispiel #2
0
        protected static PropertyWrapperType TypeEnumFromType(string typeName)
        {
            if (!Enum.GetNames(typeof(PropertyWrapperType)).Contains(typeName))
            {
                return(PropertyWrapperType.Unknown);
            }

            PropertyWrapperType t = PropertyWrapperType.Unknown;

            if (!Enum.TryParse(typeName, out t))
            {
                return(PropertyWrapperType.Unknown);
            }

            return(t);
        }
Beispiel #3
0
        protected static bool IsReadonlyPropertyType(PropertyWrapperType t)
        {
            bool isReadonly = false;

            switch (t)
            {
            case PropertyWrapperType.StructProperty:
            case PropertyWrapperType.ContainerProperty:
            case PropertyWrapperType.StructContainerProperty:
            case PropertyWrapperType.ListProperty:
            case PropertyWrapperType.StructListProperty:
            case PropertyWrapperType.ContainerListProperty:
                isReadonly = true;
                break;
            }
            return(isReadonly);
        }