Exemplo n.º 1
0
        public static SortDirectionEnum CreateInstance()
        {
            SortDirectionEnum instance;

            TypeDescriptor enumType;
            TypeDescriptor enumValType;

            EnumContextHelper.RegisterEnumType<SortDirectionEnum>(out enumType, out enumValType);

            instance = new SortDirectionEnum(enumType, enumValType);

            EnumContextHelper.RegisterValues<SortDirectionEnum>(instance);

            return instance;
        }
Exemplo n.º 2
0
        public static SortDirectionEnum CreateInstance()
        {
            SortDirectionEnum instance;

            TypeDescriptor enumType;
            TypeDescriptor enumValType;

            EnumContextHelper.RegisterEnumType <SortDirectionEnum>(out enumType, out enumValType);

            instance = new SortDirectionEnum(enumType, enumValType);

            EnumContextHelper.RegisterValues <SortDirectionEnum>(instance);

            return(instance);
        }