public static SymbolsEnum CreateInstance() { var type = TypeManager.RegisterType("Символы", typeof(SymbolsEnum)); var stringType = TypeDescriptor.FromDataType(DataType.String); var instance = new SymbolsEnum(type, stringType); instance.AddValue("ПС", new SymbolsEnumValue(instance, "\n")); instance.AddValue("ВК", new SymbolsEnumValue(instance, "\r")); instance.AddValue("ВТаб", new SymbolsEnumValue(instance, "\v")); instance.AddValue("Таб", new SymbolsEnumValue(instance, "\t")); instance.AddValue("ПФ", new SymbolsEnumValue(instance, "\f")); instance.AddValue("НПП", new SymbolsEnumValue(instance, "\u00A0")); return(instance); }
public static SymbolsEnum CreateInstance() { var type = TypeManager.RegisterType("Символы", typeof(SymbolsEnum)); var stringType = TypeDescriptor.FromDataType(DataType.String); var instance = new SymbolsEnum(type, stringType); instance.AddValue("ПС", "LF", new SymbolsEnumValue(instance, "\n")); instance.AddValue("ВК", "CR", new SymbolsEnumValue(instance, "\r")); instance.AddValue("ВТаб", "VTab", new SymbolsEnumValue(instance, "\v")); instance.AddValue("Таб", "Tab", new SymbolsEnumValue(instance, "\t")); instance.AddValue("ПФ", "FF", new SymbolsEnumValue(instance, "\f")); instance.AddValue("НПП", "NBSp", new SymbolsEnumValue(instance, "\u00A0")); return instance; }