From da330fda7e864f1cb6c1fd6a29aacc6a9634dbe4 Mon Sep 17 00:00:00 2001 From: Mr-Rm Date: Mon, 18 Nov 2024 15:36:59 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D0=BF=D0=B0=D0=B4=D0=B5=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/OneScript.StandardLibrary/Text/ConsoleColorEnum.cs | 1 - src/OneScript.StandardLibrary/Xml/XmlNodeTypeEnum.cs | 2 -- src/OneScript.StandardLibrary/Xml/XmlSpaceEnum.cs | 5 ++--- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/OneScript.StandardLibrary/Text/ConsoleColorEnum.cs b/src/OneScript.StandardLibrary/Text/ConsoleColorEnum.cs index c8e408e4e..5a6101f00 100644 --- a/src/OneScript.StandardLibrary/Text/ConsoleColorEnum.cs +++ b/src/OneScript.StandardLibrary/Text/ConsoleColorEnum.cs @@ -7,7 +7,6 @@ This Source Code Form is subject to the terms of the using System; using OneScript.Contexts.Enums; -using OneScript.StandardLibrary.XMLSchema.Enumerations; using OneScript.Types; using ScriptEngine.Machine.Contexts; diff --git a/src/OneScript.StandardLibrary/Xml/XmlNodeTypeEnum.cs b/src/OneScript.StandardLibrary/Xml/XmlNodeTypeEnum.cs index 27dcb8890..46618868e 100644 --- a/src/OneScript.StandardLibrary/Xml/XmlNodeTypeEnum.cs +++ b/src/OneScript.StandardLibrary/Xml/XmlNodeTypeEnum.cs @@ -5,10 +5,8 @@ This Source Code Form is subject to the terms of the at http://mozilla.org/MPL/2.0/. ----------------------------------------------------------*/ -using System.Collections.Generic; using System.Xml; using OneScript.Contexts.Enums; -using OneScript.StandardLibrary.XMLSchema.Enumerations; using OneScript.Types; using ScriptEngine.Machine.Contexts; diff --git a/src/OneScript.StandardLibrary/Xml/XmlSpaceEnum.cs b/src/OneScript.StandardLibrary/Xml/XmlSpaceEnum.cs index edbff69e1..436db9024 100644 --- a/src/OneScript.StandardLibrary/Xml/XmlSpaceEnum.cs +++ b/src/OneScript.StandardLibrary/Xml/XmlSpaceEnum.cs @@ -7,7 +7,6 @@ This Source Code Form is subject to the terms of the using System.Xml; using OneScript.Contexts.Enums; -using OneScript.StandardLibrary.XMLSchema.Enumerations; using OneScript.Types; using ScriptEngine.Machine.Contexts; @@ -19,8 +18,8 @@ public class XmlSpaceEnum : ClrEnumWrapperCached private XmlSpaceEnum(TypeDescriptor typeRepresentation, TypeDescriptor valuesType) : base(typeRepresentation, valuesType) { - this.WrapClrValue("ПоУмолчанию", "Default", XmlSpace.Default); - this.WrapClrValue("Сохранять", "Preserve", XmlSpace.Preserve); + MakeValue("ПоУмолчанию", "Default", XmlSpace.Default); + MakeValue("Сохранять", "Preserve", XmlSpace.Preserve); } public static XmlSpaceEnum CreateInstance(ITypeManager typeManager)