From 246d9bb4fa611dafdd611710aec45636a1311730 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Sun, 19 Jun 2022 00:44:31 -0400 Subject: [PATCH] Enable IDE0065 (Misplaced using directive) (#70919) --- eng/CodeAnalysis.src.globalconfig | 2 +- src/coreclr/nativeaot/Directory.Build.props | 2 +- .../DesignTimeVisibleAttribute.cs | 6 ++-- .../Configuration/ConfigDefinitionUpdates.cs | 4 +-- .../System.Data.OleDb/src/OleDbConnection.cs | 3 +- .../src/OleDbConnectionInternal.cs | 3 +- .../System.Data.OleDb/src/OleDbStruct.cs | 9 +++-- .../Data/ProviderBase/DbConnectionHelper.cs | 3 +- .../Data/ProviderBase/DbConnectionPool.cs | 3 +- .../AccountManagement/ExtensionCache.cs | 10 +++--- .../AccountManagement/interopt.cs | 8 ++--- .../src/System/Drawing/ImageAnimator.cs | 9 +++-- .../Drawing/Imaging/ImageCodecInfoPrivate.cs | 4 +-- .../Drawing/Imaging/MetafileHeaderEmf.cs | 10 +++--- .../Drawing/Imaging/MetafileHeaderWmf.cs | 10 +++--- .../src/System/Resources/ResourceReader.cs | 2 ++ .../System/Resources/RuntimeResourceSet.cs | 3 ++ .../Serialization/ClassDataContract.cs | 27 +++++++------- .../Serialization/CollectionDataContract.cs | 23 ++++++------ .../Runtime/Serialization/DataContract.cs | 32 ++++++++--------- .../Serialization/DataContractSerializer.cs | 28 +++++++-------- .../DataContractSurrogateCaller.cs | 12 +++---- .../Json/DataContractJsonSerializer.cs | 29 ++++++++------- .../Json/JsonFormatReaderGenerator.cs | 17 ++++----- .../Json/JsonFormatWriterGenerator.cs | 15 ++++---- .../Runtime/Serialization/ScopedKnownTypes.cs | 8 ++--- .../Serialization/SurrogateDataContract.cs | 12 +++---- .../Runtime/Serialization/XmlDataContract.cs | 26 +++++++------- .../Serialization/XmlObjectSerializer.cs | 22 ++++++------ .../XmlObjectSerializerContext.cs | 18 +++++----- .../XmlObjectSerializerReadContext.cs | 22 ++++++------ .../Serialization/XmlSerializableServices.cs | 8 ++--- .../System.Private.Xml/src/Misc/HResults.cs | 2 -- .../src/System/Xml/Core/QueryOutputWriter.cs | 15 ++++---- .../System/Xml/Core/XmlAutoDetectWriter.cs | 17 +++++---- .../src/System/Xml/DiagnosticsSwitches.cs | 4 +-- .../src/System/Xml/Dom/XPathNodeList.cs | 10 +++--- .../src/System/Xml/Dom/XmlName.cs | 8 ++--- .../src/System/Xml/Dom/XmlNodeReader.cs | 18 +++++----- .../src/System/Xml/Dom/XmlNotation.cs | 6 ++-- .../src/System/Xml/Schema/Asttree.cs | 18 +++++----- .../src/System/Xml/Schema/AutoValidator.cs | 6 ++-- .../src/System/Xml/Schema/BaseProcessor.cs | 8 ++--- .../src/System/Xml/Schema/BaseValidator.cs | 14 ++++---- .../Xml/Schema/CompiledidEntityConstraint.cs | 12 +++---- .../Xml/Schema/DataTypeImplementation.cs | 24 ++++++------- .../src/System/Xml/Schema/DtdValidator.cs | 20 +++++------ .../src/System/Xml/Schema/FacetChecker.cs | 24 ++++++------- .../src/System/Xml/Schema/NamespaceList.cs | 8 ++--- .../src/System/Xml/Schema/Parser.cs | 16 ++++----- .../src/System/Xml/Schema/ParserAsync.cs | 18 +++++----- .../src/System/Xml/Schema/Preprocessor.cs | 16 ++++----- .../src/System/Xml/Schema/SchemaAttDef.cs | 8 ++--- .../Schema/SchemaCollectionpreProcessor.cs | 12 +++---- .../src/System/Xml/Schema/SchemaDeclBase.cs | 8 ++--- .../System/Xml/Schema/SchemaElementDecl.cs | 10 +++--- .../src/System/Xml/Schema/SchemaEntity.cs | 6 ++-- .../src/System/Xml/Schema/SchemaNames.cs | 6 ++-- .../Xml/Schema/SchemaNamespacemanager.cs | 10 +++--- .../src/System/Xml/Schema/SchemaNotation.cs | 6 ++-- .../src/System/Xml/Schema/ValidationState.cs | 10 +++--- .../src/System/Xml/Schema/XdrBuilder.cs | 18 +++++----- .../src/System/Xml/Schema/XdrValidator.cs | 16 ++++----- .../src/System/Xml/Schema/XmlSchema.cs | 18 +++++----- .../src/System/Xml/Schema/XmlSchemaAll.cs | 6 ++-- .../System/Xml/Schema/XmlSchemaAnnotated.cs | 6 ++-- .../System/Xml/Schema/XmlSchemaAnnotation.cs | 6 ++-- .../src/System/Xml/Schema/XmlSchemaAny.cs | 8 ++--- .../Xml/Schema/XmlSchemaAnyAttribute.cs | 8 ++--- .../src/System/Xml/Schema/XmlSchemaAppInfo.cs | 6 ++-- .../Xml/Schema/XmlSchemaAttributeGroup.cs | 6 ++-- .../Xml/Schema/XmlSchemaAttributeGroupref.cs | 8 ++--- .../src/System/Xml/Schema/XmlSchemaChoice.cs | 6 ++-- .../System/Xml/Schema/XmlSchemaCollection.cs | 15 ++++---- .../Xml/Schema/XmlSchemaComplexContent.cs | 4 +-- .../XmlSchemaComplexContentExtension.cs | 6 ++-- .../XmlSchemaComplexContentRestriction.cs | 6 ++-- .../src/System/Xml/Schema/XmlSchemaContent.cs | 6 ++-- .../Xml/Schema/XmlSchemaContentModel.cs | 4 +-- .../Xml/Schema/XmlSchemaContentProcessing.cs | 4 +-- .../Xml/Schema/XmlSchemaDerivationMethod.cs | 8 ++--- .../Xml/Schema/XmlSchemaDocumentation.cs | 10 +++--- .../System/Xml/Schema/XmlSchemaExternal.cs | 8 ++--- .../src/System/Xml/Schema/XmlSchemaFacet.cs | 6 ++-- .../src/System/Xml/Schema/XmlSchemaForm.cs | 4 +-- .../src/System/Xml/Schema/XmlSchemaGroup.cs | 4 +-- .../System/Xml/Schema/XmlSchemaGroupBase.cs | 4 +-- .../System/Xml/Schema/XmlSchemaGroupRef.cs | 4 +-- .../Xml/Schema/XmlSchemaIdEntityConstraint.cs | 8 ++--- .../src/System/Xml/Schema/XmlSchemaImport.cs | 4 +-- .../src/System/Xml/Schema/XmlSchemaInclude.cs | 4 +-- .../System/Xml/Schema/XmlSchemaNotation.cs | 4 +-- .../src/System/Xml/Schema/XmlSchemaObject.cs | 6 ++-- .../Xml/Schema/XmlSchemaObjectCollection.cs | 8 ++--- .../System/Xml/Schema/XmlSchemaObjectTable.cs | 8 ++--- .../System/Xml/Schema/XmlSchemaParticle.cs | 4 +-- .../System/Xml/Schema/XmlSchemaRedefine.cs | 4 +-- .../System/Xml/Schema/XmlSchemaSequence.cs | 4 +-- .../Xml/Schema/XmlSchemaSimpleContent.cs | 4 +-- .../Schema/XmlSchemaSimpleContentExtension.cs | 4 +-- .../XmlSchemaSimpleContentRestriction.cs | 4 +-- .../System/Xml/Schema/XmlSchemaSimpleType.cs | 6 ++-- .../Xml/Schema/XmlSchemaSimpleTypeList.cs | 4 +-- .../Schema/XmlSchemaSimpleTypeRestriction.cs | 6 ++-- .../Xml/Schema/XmlSchemaSimpleTypeUnion.cs | 4 +-- .../Xml/Schema/XmlSchemaSubstitutionGroup.cs | 6 ++-- .../src/System/Xml/Schema/XmlSchemaUse.cs | 4 +-- .../src/System/Xml/Schema/XsdDateTime.cs | 10 +++--- .../src/System/Xml/Schema/XsdDuration.cs | 7 ++-- .../src/System/Xml/Schema/XsdValidator.cs | 20 +++++------ .../Serialization/CodeGenerationoptions.cs | 8 ++--- .../Xml/Serialization/CodeIdentifiers.cs | 10 +++--- .../DateTimeSerializationSection.cs | 12 +++---- .../Xml/Serialization/IXmlSerializable.cs | 8 ++--- .../Xml/Serialization/IXmlTextParser.cs | 4 +-- .../System/Xml/Serialization/ImportContext.cs | 20 +++++------ .../src/System/Xml/Serialization/Mappings.cs | 24 ++++++------- .../src/System/Xml/Serialization/Models.cs | 14 ++++---- .../src/System/Xml/Serialization/NameTable.cs | 9 +++-- .../Xml/Serialization/SchemaImporter.cs | 22 ++++++------ .../Xml/Serialization/SchemaObjectWriter.cs | 20 +++++------ .../Serialization/SoapAttributeAttribute.cs | 6 ++-- .../Serialization/SoapAttributeOverrides.cs | 14 ++++---- .../Xml/Serialization/SoapElementAttribute.cs | 6 ++-- .../Xml/Serialization/SoapEnumAttribute.cs | 6 ++-- .../Xml/Serialization/SoapIgnoreAttribute.cs | 4 +-- .../Xml/Serialization/SoapIncludeAttribute.cs | 2 -- .../Serialization/SoapReflectionImporter.cs | 22 ++++++------ .../Xml/Serialization/SoapSchemamember.cs | 8 ++--- .../Xml/Serialization/SoapTypeAttribute.cs | 6 ++-- .../Xml/Serialization/TypeExtensions.cs | 8 ++--- .../src/System/Xml/Serialization/Types.cs | 20 +++++------ .../Serialization/XmlAnyElementAttributes.cs | 10 +++--- .../Serialization/XmlArrayItemAttributes.cs | 10 +++--- .../Serialization/XmlAttributeOverrides.cs | 16 ++++----- .../Xml/Serialization/XmlElementAttributes.cs | 10 +++--- .../Serialization/XmlReflectionImporter.cs | 28 +++++++-------- .../Xml/Serialization/XmlSchemaExporter.cs | 16 ++++----- .../Xml/Serialization/XmlSchemaImporter.cs | 26 +++++++------- .../XmlSchemaProviderAttribute.cs | 6 ++-- .../System/Xml/Serialization/XmlSchemas.cs | 30 ++++++++-------- .../XmlSerializationGeneratedCode.cs | 20 +++++------ .../Serialization/XmlSerializationILGen.cs | 16 ++++----- .../Serialization/XmlSerializationReader.cs | 24 ++++++------- .../XmlSerializationReaderILGen.cs | 26 +++++++------- .../Serialization/XmlSerializationWriter.cs | 36 +++++++++---------- .../XmlSerializerAssemblyAttribute.cs | 4 +-- .../Xml/Serialization/XmlSerializerFactory.cs | 26 +++++++------- .../Serialization/XmlSerializerNamespaces.cs | 18 +++++----- .../XmlSerializerVersionAttribute.cs | 4 +-- .../Xml/Serialization/Xmlcustomformatter.cs | 22 ++++++------ .../src/System/Xml/Serialization/_Events.cs | 12 +++---- .../Xml/Serialization/indentedWriter.cs | 4 +-- .../Xml/XPath/Internal/XPathMultyIterator.cs | 14 ++++---- .../src/System/Xml/XmlComplianceUtil.cs | 3 +- .../src/System/Xml/XmlResolver.cs | 18 +++++----- .../src/System/Xml/XmlSecureResolver.cs | 8 ++--- .../src/System/Xml/Xsl/IlGen/XmlILModule.cs | 3 +- .../src/System/Xml/Xsl/IlGen/XmlIlVisitor.cs | 3 +- .../Xml/Xsl/Runtime/XmlAttributeCache.cs | 13 ++++--- .../System/Xml/Xsl/Runtime/XmlQueryContext.cs | 3 +- .../src/System/Xml/Xsl/XPath/XPathBuilder.cs | 5 ++- .../src/System/Xml/Xsl/XPath/XPathParser.cs | 3 +- .../System/Xml/Xsl/XPath/XPathQilFactory.cs | 3 +- .../src/System/Xml/Xsl/XmlQueryTypeFactory.cs | 3 +- .../Xml/Xsl/Xslt/CompilerScopeManager.cs | 3 +- .../src/System/Xml/Xsl/Xslt/Focus.cs | 3 +- .../System/Xml/Xsl/Xslt/InvokeGenerator.cs | 3 +- .../src/System/Xml/Xsl/Xslt/MatcherBuilder.cs | 3 +- .../src/System/Xml/Xsl/Xslt/QilGenerator.cs | 5 ++- .../System/Xml/Xsl/Xslt/QilGeneratorEnv.cs | 5 ++- .../Xml/Xsl/Xslt/XPathPatternBuilder.cs | 3 +- .../System/Xml/Xsl/Xslt/XPathPatternParser.cs | 5 ++- .../src/System/Xml/Xsl/Xslt/XslAst.cs | 5 ++- .../src/System/Xml/Xsl/Xslt/XslAstAnalyzer.cs | 7 ++-- .../src/System/Xml/Xsl/Xslt/XsltInput.cs | 2 +- .../src/System/Xml/Xsl/Xslt/XsltLoader.cs | 11 +++--- .../src/System/Xml/Xsl/Xslt/XsltQilFactory.cs | 3 +- .../src/System/Xml/Xsl/XsltOld/ActionFrame.cs | 16 ++++----- .../Xml/Xsl/XsltOld/ApplyImportsAction.cs | 10 +++--- .../Xml/Xsl/XsltOld/ApplyTemplatesAction.cs | 12 +++---- .../System/Xml/Xsl/XsltOld/AttributeAction.cs | 10 +++--- .../Xml/Xsl/XsltOld/AttributeSetAction.cs | 12 +++---- .../src/System/Xml/Xsl/XsltOld/Avt.cs | 16 ++++----- .../src/System/Xml/Xsl/XsltOld/AvtEvent.cs | 12 +++---- .../src/System/Xml/Xsl/XsltOld/BeginEvent.cs | 10 +++--- .../src/System/Xml/Xsl/XsltOld/BuilderInfo.cs | 16 ++++----- .../Xml/Xsl/XsltOld/CallTemplateAction.cs | 10 +++--- .../System/Xml/Xsl/XsltOld/ChooseAction.cs | 10 +++--- .../System/Xml/Xsl/XsltOld/CommentAction.cs | 10 +++--- .../System/Xml/Xsl/XsltOld/CompiledAction.cs | 10 +++--- .../System/Xml/Xsl/XsltOld/ContainerAction.cs | 24 ++++++------- .../src/System/Xml/Xsl/XsltOld/CopyAction.cs | 12 +++---- .../Xml/Xsl/XsltOld/CopyAttributesAction.cs | 10 +++--- .../System/Xml/Xsl/XsltOld/CopyCodeAction.cs | 12 +++---- .../Xml/Xsl/XsltOld/CopyNodeSetAction.cs | 10 +++--- .../System/Xml/Xsl/XsltOld/CopyOfAction.cs | 12 +++---- .../System/Xml/Xsl/XsltOld/DocumentScope.cs | 10 +++--- .../System/Xml/Xsl/XsltOld/ElementAction.cs | 10 +++--- .../src/System/Xml/Xsl/XsltOld/EndEvent.cs | 10 +++--- .../src/System/Xml/Xsl/XsltOld/Event.cs | 12 +++---- .../System/Xml/Xsl/XsltOld/ForEachAction.cs | 12 +++---- .../src/System/Xml/Xsl/XsltOld/HtmlProps.cs | 14 ++++---- .../src/System/Xml/Xsl/XsltOld/IfAction.cs | 10 +++--- .../src/System/Xml/Xsl/XsltOld/InputScope.cs | 12 +++---- .../Xml/Xsl/XsltOld/InputScopeManager.cs | 10 +++--- .../System/Xml/Xsl/XsltOld/MessageAction.cs | 14 ++++---- .../System/Xml/Xsl/XsltOld/NameSpaceEvent.cs | 10 +++--- .../System/Xml/Xsl/XsltOld/NamespaceDecl.cs | 8 ++--- .../System/Xml/Xsl/XsltOld/NavigatorInput.cs | 14 ++++---- .../src/System/Xml/Xsl/XsltOld/OutKeywords.cs | 8 ++--- .../src/System/Xml/Xsl/XsltOld/OutputScope.cs | 10 +++--- .../Xml/Xsl/XsltOld/OutputScopeManager.cs | 10 +++--- .../src/System/Xml/Xsl/XsltOld/PrefixQName.cs | 10 +++--- .../XsltOld/ProcessingInstructionAction.cs | 8 ++--- .../src/System/Xml/Xsl/XsltOld/Processor.cs | 24 ++++++------- .../src/System/Xml/Xsl/XsltOld/RootAction.cs | 22 ++++++------ .../src/System/Xml/Xsl/XsltOld/SortAction.cs | 12 +++---- .../System/Xml/Xsl/XsltOld/StateMachine.cs | 10 +++--- .../System/Xml/Xsl/XsltOld/StringOutput.cs | 8 ++--- .../src/System/Xml/Xsl/XsltOld/Stylesheet.cs | 12 +++---- .../System/Xml/Xsl/XsltOld/TemplateAction.cs | 16 ++++----- .../Xml/Xsl/XsltOld/TemplateBaseAction.cs | 14 ++++---- .../Xml/Xsl/XsltOld/TemplateLookupAction.cs | 12 +++---- .../System/Xml/Xsl/XsltOld/TemplateManager.cs | 12 +++---- .../src/System/Xml/Xsl/XsltOld/TextAction.cs | 10 +++--- .../src/System/Xml/Xsl/XsltOld/TextEvent.cs | 10 +++--- .../src/System/Xml/Xsl/XsltOld/TextOutput.cs | 12 +++---- .../src/System/Xml/Xsl/XsltOld/TheQuery.cs | 10 +++--- .../Xml/Xsl/XsltOld/UseAttributeSetsAction.cs | 12 +++---- .../System/Xml/Xsl/XsltOld/ValueOfAction.cs | 10 +++--- .../System/Xml/Xsl/XsltOld/WithParamAction.cs | 12 +++---- .../Xml/Xsl/XsltOld/XsltCompileContext.cs | 24 ++++++------- .../System/Xml/Xsl/XsltOld/XsltDebugger.cs | 4 +-- .../src/System/Xml/Xsl/XsltOld/XsltOutput.cs | 14 ++++---- .../Xml/Xsl/XsltOld/newinstructionaction.cs | 10 +++--- .../src/System/Xml/Xslt/XslTransform.cs | 16 ++++----- .../TypeLoading/General/AssemblyNameData.cs | 3 ++ .../Security/Cryptography/ECDsaCng.Key.cs | 6 ++-- .../OpenSslCertificateAssetDownloader.cs | 3 +- 240 files changed, 1251 insertions(+), 1295 deletions(-) diff --git a/eng/CodeAnalysis.src.globalconfig b/eng/CodeAnalysis.src.globalconfig index 5c3b45e388e92..71851d9e96eb1 100644 --- a/eng/CodeAnalysis.src.globalconfig +++ b/eng/CodeAnalysis.src.globalconfig @@ -1492,7 +1492,7 @@ dotnet_diagnostic.IDE0063.severity = silent dotnet_diagnostic.IDE0064.severity = silent # IDE0065: Misplaced using directive -dotnet_diagnostic.IDE0065.severity = suggestion +dotnet_diagnostic.IDE0065.severity = warning # IDE0066: Convert switch statement to expression dotnet_diagnostic.IDE0066.severity = suggestion diff --git a/src/coreclr/nativeaot/Directory.Build.props b/src/coreclr/nativeaot/Directory.Build.props index b2cbc3c9bd2b1..bd21f742967a1 100644 --- a/src/coreclr/nativeaot/Directory.Build.props +++ b/src/coreclr/nativeaot/Directory.Build.props @@ -34,7 +34,7 @@ $(NoWarn);CS8602;CS8603;CS8604;CS8618;CS8625;CS8632;CS8765 - $(NoWarn);CA1810;CA1823;CA1825;CA1852;CA2208;SA1129;SA1205;SA1400;SA1517 + $(NoWarn);CA1810;CA1823;CA1825;CA1852;CA2208;SA1129;SA1205;SA1400;SA1517;IDE0065 $(NoWarn);CS3016 diff --git a/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/DesignTimeVisibleAttribute.cs b/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/DesignTimeVisibleAttribute.cs index 6cf7b1c7e6526..ab827a93d0a61 100644 --- a/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/DesignTimeVisibleAttribute.cs +++ b/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/DesignTimeVisibleAttribute.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics.CodeAnalysis; + namespace System.ComponentModel { - using System; - using System.Diagnostics.CodeAnalysis; - /// /// DesignTimeVisibileAttribute marks a component's visibility. If /// DesignTimeVisibileAttribute.Yes is present, a visual designer can show diff --git a/src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/ConfigDefinitionUpdates.cs b/src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/ConfigDefinitionUpdates.cs index 277ec9673bda4..141ea4d898248 100644 --- a/src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/ConfigDefinitionUpdates.cs +++ b/src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/ConfigDefinitionUpdates.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; + namespace System.Configuration { - using Collections; - // Contains all the updates to section definitions across all location sections. internal sealed class ConfigDefinitionUpdates { diff --git a/src/libraries/System.Data.OleDb/src/OleDbConnection.cs b/src/libraries/System.Data.OleDb/src/OleDbConnection.cs index 0578552235e63..b89a4490fc007 100644 --- a/src/libraries/System.Data.OleDb/src/OleDbConnection.cs +++ b/src/libraries/System.Data.OleDb/src/OleDbConnection.cs @@ -9,11 +9,10 @@ using System.Globalization; using System.Runtime.InteropServices; using System.Text; +using SysTx = System.Transactions; namespace System.Data.OleDb { - using SysTx = Transactions; - // wraps the OLEDB IDBInitialize interface which represents a connection // Notes about connection pooling // 1. Only happens if we use the IDataInitialize or IDBPromptInitialize interfaces diff --git a/src/libraries/System.Data.OleDb/src/OleDbConnectionInternal.cs b/src/libraries/System.Data.OleDb/src/OleDbConnectionInternal.cs index f2b98efd4e4cb..7c0a1851c7aa3 100644 --- a/src/libraries/System.Data.OleDb/src/OleDbConnectionInternal.cs +++ b/src/libraries/System.Data.OleDb/src/OleDbConnectionInternal.cs @@ -8,11 +8,10 @@ using System.Globalization; using System.Runtime.InteropServices; using System.Threading; +using SysTx = System.Transactions; namespace System.Data.OleDb { - using SysTx = Transactions; - internal sealed class OleDbConnectionInternal : DbConnectionInternal, IDisposable { private static volatile OleDbServicesWrapper? idataInitialize; diff --git a/src/libraries/System.Data.OleDb/src/OleDbStruct.cs b/src/libraries/System.Data.OleDb/src/OleDbStruct.cs index 0c7dd5ad35c84..d0c79b29beedd 100644 --- a/src/libraries/System.Data.OleDb/src/OleDbStruct.cs +++ b/src/libraries/System.Data.OleDb/src/OleDbStruct.cs @@ -2,14 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.InteropServices; - -namespace System.Data.OleDb -{ #if DEBUG - using Globalization; - using Text; +using System.Globalization; +using System.Text; #endif +namespace System.Data.OleDb +{ internal enum DBBindStatus { OK = 0, diff --git a/src/libraries/System.Data.OleDb/src/System/Data/ProviderBase/DbConnectionHelper.cs b/src/libraries/System.Data.OleDb/src/System/Data/ProviderBase/DbConnectionHelper.cs index d1f710dbf9c29..d1b4eacc644d8 100644 --- a/src/libraries/System.Data.OleDb/src/System/Data/ProviderBase/DbConnectionHelper.cs +++ b/src/libraries/System.Data.OleDb/src/System/Data/ProviderBase/DbConnectionHelper.cs @@ -5,11 +5,10 @@ using System.Data.ProviderBase; using System.Diagnostics; using System.Threading; +using SysTx = System.Transactions; namespace System.Data.OleDb { - using SysTx = Transactions; - public sealed partial class OleDbConnection : DbConnection { private static readonly DbConnectionFactory _connectionFactory = OleDbConnectionFactory.SingletonInstance; diff --git a/src/libraries/System.Data.OleDb/src/System/Data/ProviderBase/DbConnectionPool.cs b/src/libraries/System.Data.OleDb/src/System/Data/ProviderBase/DbConnectionPool.cs index bd1e3e7644890..836b061027169 100644 --- a/src/libraries/System.Data.OleDb/src/System/Data/ProviderBase/DbConnectionPool.cs +++ b/src/libraries/System.Data.OleDb/src/System/Data/ProviderBase/DbConnectionPool.cs @@ -11,11 +11,10 @@ using System.Runtime.Versioning; using System.Threading; using System.Threading.Tasks; +using SysTx = System.Transactions; namespace System.Data.ProviderBase { - using SysTx = Transactions; - internal sealed class DbConnectionPool { private enum State diff --git a/src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/ExtensionCache.cs b/src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/ExtensionCache.cs index dc814522927cd..9486b426b4b5d 100644 --- a/src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/ExtensionCache.cs +++ b/src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/ExtensionCache.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Collections.Generic; +using System.Collections; +using System.DirectoryServices; + namespace System.DirectoryServices.AccountManagement { - using System; - using System.Collections.Generic; - using System.Collections; - using System.DirectoryServices; - internal sealed class ExtensionCacheValue { internal ExtensionCacheValue(object[] value) diff --git a/src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/interopt.cs b/src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/interopt.cs index 6d0a1866f3c78..5ff280398e788 100644 --- a/src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/interopt.cs +++ b/src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/interopt.cs @@ -1,17 +1,15 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// +using System; +using System.Runtime.InteropServices; + // This file defines many COM dual interfaces which are legacy and, // cannot be changed. Tolerate possible obsoletion. -// #pragma warning disable CS0618 // Type or member is obsolete namespace System.DirectoryServices.AccountManagement { - using System.Runtime.InteropServices; - using System; - internal static class Constants { internal static byte[] GUID_FOREIGNSECURITYPRINCIPALS_CONTAINER_BYTE = new byte[] { 0x22, 0xb7, 0x0c, 0x67, 0xd5, 0x6e, 0x4e, 0xfb, 0x91, 0xe9, 0x30, 0x0f, 0xca, 0x3d, 0xc1, 0xaa }; diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/ImageAnimator.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/ImageAnimator.cs index 66ccb70166e84..48e0f1ce8fd9e 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/ImageAnimator.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/ImageAnimator.cs @@ -1,15 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections.Generic; +using System.Diagnostics; using System.Diagnostics.CodeAnalysis; +using System.Drawing.Imaging; +using System.Threading; namespace System.Drawing { - using System.Collections.Generic; - using System.Diagnostics; - using System.Drawing.Imaging; - using System.Threading; - /// /// Animates one or more images that have time-based frames. /// See the ImageInfo.cs file for the helper nested ImageInfo class. diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/ImageCodecInfoPrivate.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/ImageCodecInfoPrivate.cs index 168c4ec56c1d4..ce3a0b9bb7fc0 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/ImageCodecInfoPrivate.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/ImageCodecInfoPrivate.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Runtime.InteropServices; + namespace System.Drawing.Imaging { - using System.Runtime.InteropServices; - // sdkinc\imaging.h [StructLayout(LayoutKind.Sequential, Pack = 8)] internal struct ImageCodecInfoPrivate diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/MetafileHeaderEmf.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/MetafileHeaderEmf.cs index e6b2d82df6b5d..16951b506fd68 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/MetafileHeaderEmf.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/MetafileHeaderEmf.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -namespace System.Drawing.Imaging -{ - using System.Runtime.CompilerServices; - using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; #if NET7_0_OR_GREATER - using System.Runtime.InteropServices.Marshalling; +using System.Runtime.InteropServices.Marshalling; #endif +namespace System.Drawing.Imaging +{ #if NET7_0_OR_GREATER [NativeMarshalling(typeof(PinningMarshaller))] #endif diff --git a/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/MetafileHeaderWmf.cs b/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/MetafileHeaderWmf.cs index e0f56e45a923b..6d52ce69e15be 100644 --- a/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/MetafileHeaderWmf.cs +++ b/src/libraries/System.Drawing.Common/src/System/Drawing/Imaging/MetafileHeaderWmf.cs @@ -1,15 +1,15 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -namespace System.Drawing.Imaging -{ - using System.Diagnostics; - using System.Runtime.CompilerServices; - using System.Runtime.InteropServices; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; #if NET7_0_OR_GREATER using System.Runtime.InteropServices.Marshalling; #endif +namespace System.Drawing.Imaging +{ [StructLayout(LayoutKind.Sequential, Pack = 8)] internal sealed class MetafileHeaderWmf { diff --git a/src/libraries/System.Private.CoreLib/src/System/Resources/ResourceReader.cs b/src/libraries/System.Private.CoreLib/src/System/Resources/ResourceReader.cs index 912236e7cddb7..d204ab23c2178 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Resources/ResourceReader.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Resources/ResourceReader.cs @@ -15,9 +15,11 @@ namespace System.Resources .Extensions #endif { +#pragma warning disable IDE0065 #if RESOURCES_EXTENSIONS using ResourceReader = DeserializingResourceReader; #endif +#pragma warning restore IDE0065 // Provides the default implementation of IResourceReader, reading // .resources file from the system default binary format. This class diff --git a/src/libraries/System.Private.CoreLib/src/System/Resources/RuntimeResourceSet.cs b/src/libraries/System.Private.CoreLib/src/System/Resources/RuntimeResourceSet.cs index 5d442cb769215..dad42b13f6929 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Resources/RuntimeResourceSet.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Resources/RuntimeResourceSet.cs @@ -11,9 +11,12 @@ namespace System.Resources .Extensions #endif { +#pragma warning disable IDE0065 #if RESOURCES_EXTENSIONS using ResourceReader = DeserializingResourceReader; #endif +#pragma warning restore IDE0065 + // A RuntimeResourceSet stores all the resources defined in one // particular CultureInfo, with some loading optimizations. // diff --git a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/ClassDataContract.cs b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/ClassDataContract.cs index f559f30703660..beb3040f4312a 100644 --- a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/ClassDataContract.cs +++ b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/ClassDataContract.cs @@ -1,24 +1,23 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Collections; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.IO; +using System.Linq; +using System.Reflection; +using System.Runtime.CompilerServices; using System.Security; +using System.Threading; +using System.Xml; +using DataContractDictionary = System.Collections.Generic.Dictionary; namespace System.Runtime.Serialization { - using System; - using System.Collections; - using System.Diagnostics; - using System.Collections.Generic; - using System.IO; - using System.Globalization; - using System.Reflection; - using System.Runtime.CompilerServices; - using System.Threading; - using System.Xml; - using DataContractDictionary = System.Collections.Generic.Dictionary; - using System.Linq; - using System.Diagnostics.CodeAnalysis; - internal sealed class ClassDataContract : DataContract { public XmlDictionaryString[]? ContractNamespaces; diff --git a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/CollectionDataContract.cs b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/CollectionDataContract.cs index cbeddf1ba5e53..41f0548798a7d 100644 --- a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/CollectionDataContract.cs +++ b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/CollectionDataContract.cs @@ -1,22 +1,21 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Collections; +using System.Collections.Generic; using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Security; +using System.Threading; +using System.Xml; +using DataContractDictionary = System.Collections.Generic.Dictionary; namespace System.Runtime.Serialization { - using System; - using System.Collections; - using System.Collections.Generic; - using System.Reflection; - using System.Runtime.CompilerServices; - using System.Threading; - using System.Xml; - using System.Linq; - using DataContractDictionary = System.Collections.Generic.Dictionary; - using System.Security; - using System.Diagnostics.CodeAnalysis; - // The interface is a perf optimization. // Only KeyValuePairAdapter should implement the interface. internal interface IKeyValuePairAdapter { } diff --git a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/DataContract.cs b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/DataContract.cs index b654711af2d5a..b2d2ab27e0e1b 100644 --- a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/DataContract.cs +++ b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/DataContract.cs @@ -1,24 +1,24 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Buffers.Binary; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Linq; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Text; +using System.Text.RegularExpressions; +using System.Xml; +using System.Xml.Schema; +using DataContractDictionary = System.Collections.Generic.Dictionary; + namespace System.Runtime.Serialization { - using System; - using System.Buffers.Binary; - using System.Collections.Generic; - using System.Globalization; - using System.Reflection; - using System.Text; - using System.Xml; - using DataContractDictionary = System.Collections.Generic.Dictionary; - using System.Text.RegularExpressions; - using System.Runtime.CompilerServices; - using System.Linq; - using Xml.Schema; - using System.Collections.Concurrent; - using System.Diagnostics.CodeAnalysis; - using System.Diagnostics; - internal abstract class DataContract { private XmlDictionaryString _name; diff --git a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/DataContractSerializer.cs b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/DataContractSerializer.cs index de5354b6e72aa..4109703339b07 100644 --- a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/DataContractSerializer.cs +++ b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/DataContractSerializer.cs @@ -1,22 +1,22 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.IO; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Text; +using System.Xml; +using DataContractDictionary = System.Collections.Generic.Dictionary; + namespace System.Runtime.Serialization { - using System; - using System.Collections; - using System.Diagnostics; - using System.Globalization; - using System.IO; - using System.Reflection; - using System.Text; - using System.Xml; - using System.Collections.Generic; - using System.Collections.ObjectModel; - using System.Runtime.CompilerServices; - using DataContractDictionary = System.Collections.Generic.Dictionary; - using System.Diagnostics.CodeAnalysis; - public sealed class DataContractSerializer : XmlObjectSerializer { private Type _rootType; diff --git a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/DataContractSurrogateCaller.cs b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/DataContractSurrogateCaller.cs index 7ce7f2c33781b..5a35b3879bbbc 100644 --- a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/DataContractSurrogateCaller.cs +++ b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/DataContractSurrogateCaller.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.CodeDom; +using System.Collections.ObjectModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + namespace System.Runtime.Serialization { - using System; - using System.CodeDom; - using System.Reflection; - using System.Collections.ObjectModel; - using System.Diagnostics.CodeAnalysis; - internal static class DataContractSurrogateCaller { [RequiresUnreferencedCode(DataContract.SerializerTrimmerWarning)] diff --git a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/Json/DataContractJsonSerializer.cs b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/Json/DataContractJsonSerializer.cs index a9c7be7e873fa..64038675cd068 100644 --- a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/Json/DataContractJsonSerializer.cs +++ b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/Json/DataContractJsonSerializer.cs @@ -1,23 +1,22 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.IO; +using System.Reflection; +using System.Runtime.Serialization; +using System.Security; +using System.Text; +using System.Xml; +using DataContractDictionary = System.Collections.Generic.Dictionary; + namespace System.Runtime.Serialization.Json { - using System.Runtime.Serialization; - using System; - using System.Collections.Generic; - using System.Collections.ObjectModel; - using System.IO; - using System.Text; - using System.Xml; - using System.Collections; - using DataContractDictionary = System.Collections.Generic.Dictionary; - - using System.Globalization; - using System.Reflection; - using System.Security; - using System.Diagnostics.CodeAnalysis; - public sealed class DataContractJsonSerializer : XmlObjectSerializer { internal IList? knownTypeList; diff --git a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/Json/JsonFormatReaderGenerator.cs b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/Json/JsonFormatReaderGenerator.cs index a824b58750e36..ceee570b7475e 100644 --- a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/Json/JsonFormatReaderGenerator.cs +++ b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/Json/JsonFormatReaderGenerator.cs @@ -2,20 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; +using System.Reflection.Emit; +using System.Runtime; +using System.Security; using System.Xml; namespace System.Runtime.Serialization.Json { - using System; - using System.Collections.Generic; - using System.Diagnostics; - using System.Diagnostics.CodeAnalysis; - using System.Reflection; - using System.Reflection.Emit; - using System.Runtime; - using System.Security; - using System.Xml; - internal delegate object JsonFormatClassReaderDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContextComplexJson? context, XmlDictionaryString emptyDictionaryString, XmlDictionaryString[]? memberNames); internal delegate object JsonFormatCollectionReaderDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContextComplexJson context, XmlDictionaryString emptyDictionaryString, XmlDictionaryString itemName, CollectionDataContract collectionContract); internal delegate void JsonFormatGetOnlyCollectionReaderDelegate(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContextComplexJson context, XmlDictionaryString emptyDictionaryString, XmlDictionaryString itemName, CollectionDataContract collectionContract); diff --git a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/Json/JsonFormatWriterGenerator.cs b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/Json/JsonFormatWriterGenerator.cs index 8b2f232608acb..d8b391be9e3fe 100644 --- a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/Json/JsonFormatWriterGenerator.cs +++ b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/Json/JsonFormatWriterGenerator.cs @@ -2,19 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; +using System.Collections; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; +using System.Reflection.Emit; +using System.Security; using System.Xml; namespace System.Runtime.Serialization.Json { - using System; - using System.Collections; - using System.Diagnostics; - using System.Diagnostics.CodeAnalysis; - using System.Reflection; - using System.Reflection.Emit; - using System.Security; - using System.Xml; - internal delegate void JsonFormatClassWriterDelegate(XmlWriterDelegator xmlWriter, object obj, XmlObjectSerializerWriteContextComplexJson context, ClassDataContract dataContract, XmlDictionaryString[]? memberNames); internal delegate void JsonFormatCollectionWriterDelegate(XmlWriterDelegator xmlWriter, object obj, XmlObjectSerializerWriteContextComplexJson context, CollectionDataContract dataContract); diff --git a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/ScopedKnownTypes.cs b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/ScopedKnownTypes.cs index e9414b2a899d2..47fed535d5782 100644 --- a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/ScopedKnownTypes.cs +++ b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/ScopedKnownTypes.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Xml; +using DataContractDictionary = System.Collections.Generic.Dictionary; + namespace System.Runtime.Serialization { - using System; - using System.Xml; - using DataContractDictionary = System.Collections.Generic.Dictionary; - internal struct ScopedKnownTypes { internal DataContractDictionary[] dataContractDictionaries; diff --git a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/SurrogateDataContract.cs b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/SurrogateDataContract.cs index cfda1922155de..dce6f2a7df748 100644 --- a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/SurrogateDataContract.cs +++ b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/SurrogateDataContract.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +using System.Security; + namespace System.Runtime.Serialization { - using System; - using System.Security; - using System.Runtime.CompilerServices; - using System.Diagnostics; - using System.Diagnostics.CodeAnalysis; - internal sealed class SurrogateDataContract : DataContract { private readonly SurrogateDataContractCriticalHelper _helper; diff --git a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlDataContract.cs b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlDataContract.cs index ea573ac1d803e..cf6036ad01c23 100644 --- a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlDataContract.cs +++ b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlDataContract.cs @@ -1,21 +1,21 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Security; +using System.Threading; +using System.Xml; +using System.Xml.Schema; +using System.Xml.Serialization; +using DataContractDictionary = System.Collections.Generic.Dictionary; + namespace System.Runtime.Serialization { - using System; - using System.Collections.Generic; - using System.Reflection; - using System.Threading; - using System.Xml; - using DataContractDictionary = System.Collections.Generic.Dictionary; - using System.Xml.Serialization; - using System.Xml.Schema; - using System.Security; - using System.Linq; - using System.Runtime.CompilerServices; - using System.Diagnostics.CodeAnalysis; - internal delegate IXmlSerializable CreateXmlSerializableDelegate(); internal sealed class XmlDataContract : DataContract { diff --git a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlObjectSerializer.cs b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlObjectSerializer.cs index 5d1cc609678b9..79035ce746dda 100644 --- a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlObjectSerializer.cs +++ b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlObjectSerializer.cs @@ -1,19 +1,19 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.IO; +using System.Runtime.CompilerServices; +using System.Security; +using System.Text; +using System.Xml; +using DataContractDictionary = System.Collections.Generic.Dictionary; + namespace System.Runtime.Serialization { - using System; - using System.Diagnostics; - using System.Globalization; - using System.IO; - using System.Xml; - using System.Runtime.CompilerServices; - using System.Text; - using System.Security; - using DataContractDictionary = System.Collections.Generic.Dictionary; - using System.Diagnostics.CodeAnalysis; - public abstract class XmlObjectSerializer { [RequiresUnreferencedCode(DataContract.SerializerTrimmerWarning)] diff --git a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlObjectSerializerContext.cs b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlObjectSerializerContext.cs index 4ef27435c85af..8c8073b1583f9 100644 --- a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlObjectSerializerContext.cs +++ b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlObjectSerializerContext.cs @@ -1,17 +1,17 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; +using System.Security; +using System.Xml; +using DataContractDictionary = System.Collections.Generic.Dictionary; + namespace System.Runtime.Serialization { - using System; - using System.Collections.Generic; - using System.Diagnostics; - using System.Diagnostics.CodeAnalysis; - using System.Reflection; - using System.Security; - using System.Xml; - using DataContractDictionary = System.Collections.Generic.Dictionary; - internal class XmlObjectSerializerContext { protected XmlObjectSerializer serializer; diff --git a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlObjectSerializerReadContext.cs b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlObjectSerializerReadContext.cs index 39ce7dfb2ab5b..dc9f5c084553a 100644 --- a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlObjectSerializerReadContext.cs +++ b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlObjectSerializerReadContext.cs @@ -1,19 +1,19 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Collections; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Security; +using System.Text; +using System.Xml; +using System.Xml.Serialization; +using DataContractDictionary = System.Collections.Generic.Dictionary; + namespace System.Runtime.Serialization { - using System; - using System.Collections; - using System.Collections.Generic; - using System.Diagnostics; - using System.Text; - using System.Xml; - using System.Xml.Serialization; - using System.Security; - using DataContractDictionary = System.Collections.Generic.Dictionary; - using System.Diagnostics.CodeAnalysis; - internal class XmlObjectSerializerReadContext : XmlObjectSerializerContext { internal Attributes? attributes; diff --git a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlSerializableServices.cs b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlSerializableServices.cs index 059d42eca693c..7bbb47c1bde89 100644 --- a/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlSerializableServices.cs +++ b/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/XmlSerializableServices.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections.Generic; +using System.Xml; +using System.Xml.Schema; + namespace System.Runtime.Serialization { - using System.Collections.Generic; - using System.Xml; - using System.Xml.Schema; - public static class XmlSerializableServices { public static XmlNode[] ReadNodes(XmlReader xmlReader) diff --git a/src/libraries/System.Private.Xml/src/Misc/HResults.cs b/src/libraries/System.Private.Xml/src/Misc/HResults.cs index 2cc3c392222ae..dcd8e40424200 100644 --- a/src/libraries/System.Private.Xml/src/Misc/HResults.cs +++ b/src/libraries/System.Private.Xml/src/Misc/HResults.cs @@ -36,8 +36,6 @@ gets updated. namespace System { - using System; - internal static class HResults { // Xml diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Core/QueryOutputWriter.cs b/src/libraries/System.Private.Xml/src/System/Xml/Core/QueryOutputWriter.cs index af14085e42a76..3cab09ab1eb40 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Core/QueryOutputWriter.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Core/QueryOutputWriter.cs @@ -1,16 +1,15 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.IO; +using System.Xml.Schema; + namespace System.Xml { - using System; - using System.Globalization; - using System.IO; - using System.Collections.Generic; - using System.Xml.Schema; - using System.Diagnostics; - - /// /// This writer wraps an XmlRawWriter and inserts additional lexical information into the resulting /// Xml 1.0 document: diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Core/XmlAutoDetectWriter.cs b/src/libraries/System.Private.Xml/src/System/Xml/Core/XmlAutoDetectWriter.cs index 70d649f86b615..7e7cb6c67c384 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Core/XmlAutoDetectWriter.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Core/XmlAutoDetectWriter.cs @@ -1,17 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.IO; +using System.Text; +using System.Xml; +using System.Xml.Schema; + namespace System.Xml { - using System; - using System.Diagnostics; - using System.Diagnostics.CodeAnalysis; - using System.IO; - using System.Text; - using System.Xml; - using System.Xml.Schema; - - /// /// This writer implements XmlOutputMethod.AutoDetect. If the first element is "html", then output will be /// directed to an Html writer. Otherwise, output will be directed to an Xml writer. diff --git a/src/libraries/System.Private.Xml/src/System/Xml/DiagnosticsSwitches.cs b/src/libraries/System.Private.Xml/src/System/Xml/DiagnosticsSwitches.cs index 31a1264a345da..e8277adc71ff8 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/DiagnosticsSwitches.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/DiagnosticsSwitches.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Diagnostics; + namespace System.Xml { - using System.Diagnostics; - internal static class DiagnosticsSwitches { private static volatile BooleanSwitch? s_keepTempFiles; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Dom/XPathNodeList.cs b/src/libraries/System.Private.Xml/src/System/Xml/Dom/XPathNodeList.cs index a3d95034df6df..706e5d0a24478 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Dom/XPathNodeList.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Dom/XPathNodeList.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Diagnostics; +using System.Collections; +using System.Collections.Generic; +using System.Xml.XPath; + namespace System.Xml { - using System.Xml.XPath; - using System.Diagnostics; - using System.Collections; - using System.Collections.Generic; - internal sealed class XPathNodeList : XmlNodeList { private readonly List _list; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlName.cs b/src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlName.cs index b5d7939353b4c..4d9ee0d377263 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlName.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlName.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Diagnostics; +using System.Text; +using System.Xml.Schema; + namespace System.Xml { - using System.Text; - using System.Diagnostics; - using System.Xml.Schema; - internal class XmlName : IXmlSchemaInfo { private readonly string _prefix; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlNodeReader.cs b/src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlNodeReader.cs index 437eaf974d942..3e311a6052e33 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlNodeReader.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlNodeReader.cs @@ -1,17 +1,17 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Collections; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Schema; + namespace System.Xml { - using System; - using System.Text; - using System.IO; - using System.Diagnostics; - using System.Collections; - using System.Collections.Generic; - using System.Xml.Schema; - using System.Globalization; - internal sealed class XmlNodeReaderNavigator { private XmlNode _curNode; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlNotation.cs b/src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlNotation.cs index 9519c9421dcb5..17035e582641d 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlNotation.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Dom/XmlNotation.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; + namespace System.Xml { - using System; - using System.Diagnostics; - // Contains a notation declared in the DTD or schema. public class XmlNotation : XmlNode { diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/Asttree.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/Asttree.cs index a523db7ee2704..8b5bed9719a2b 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/Asttree.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/Asttree.cs @@ -1,17 +1,17 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.XPath; +using System.Diagnostics; +using System.Globalization; +using System.IO; +using System.Collections; +using System.Xml.Schema; +using MS.Internal.Xml.XPath; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Schema { - using System.Xml.XPath; - using System.Diagnostics; - using System.Globalization; - using System.IO; - using System.Collections; - using System.Xml.Schema; - using MS.Internal.Xml.XPath; - using System.Diagnostics.CodeAnalysis; - /*--------------------------------------------------------------------------------------------- * * Dynamic Part Below... * * -------------------------------------------------------------------------------------------- */ diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/AutoValidator.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/AutoValidator.cs index ff86563f69112..84815e2fe86aa 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/AutoValidator.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/AutoValidator.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Diagnostics; +using System.Globalization; + namespace System.Xml.Schema { - using System.Diagnostics; - using System.Globalization; - #pragma warning disable 618 internal sealed class AutoValidator : BaseValidator diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/BaseProcessor.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/BaseProcessor.cs index fc9f499731afb..e63a9e067eff7 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/BaseProcessor.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/BaseProcessor.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.Text; +using System.Diagnostics; + namespace System.Xml.Schema { - using System.Collections; - using System.Text; - using System.Diagnostics; - internal class BaseProcessor { private readonly XmlNameTable _nameTable; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/BaseValidator.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/BaseValidator.cs index e70092bf7d2be..0708e6af3604e 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/BaseValidator.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/BaseValidator.cs @@ -1,15 +1,15 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.IO; +using System.Diagnostics; +using System.Xml; +using System.Text; +using System.Collections; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Schema { - using System.IO; - using System.Diagnostics; - using System.Xml; - using System.Text; - using System.Collections; - using System.Diagnostics.CodeAnalysis; - #pragma warning disable 618 internal class BaseValidator diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/CompiledidEntityConstraint.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/CompiledidEntityConstraint.cs index 586c0a49d17ff..e85269b80bc88 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/CompiledidEntityConstraint.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/CompiledidEntityConstraint.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Text; +using System.Collections; +using System.Diagnostics; +using System.Xml.XPath; +using MS.Internal.Xml.XPath; + namespace System.Xml.Schema { - using System.Text; - using System.Collections; - using System.Diagnostics; - using System.Xml.XPath; - using MS.Internal.Xml.XPath; - internal sealed class CompiledIdentityConstraint { internal XmlQualifiedName name = XmlQualifiedName.Empty; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/DataTypeImplementation.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/DataTypeImplementation.cs index f54c99d57773c..f671c4dd82a81 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/DataTypeImplementation.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/DataTypeImplementation.cs @@ -1,20 +1,20 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.IO; +using System.Collections; +using System.Diagnostics; +using System.Globalization; +using System.Text; +using System.Text.RegularExpressions; +using System.Xml; +using System.Xml.XPath; +using System.Xml.Serialization; +using System.Reflection; + namespace System.Xml.Schema { - using System; - using System.IO; - using System.Collections; - using System.Diagnostics; - using System.Globalization; - using System.Text; - using System.Text.RegularExpressions; - using System.Xml; - using System.Xml.XPath; - using System.Xml.Serialization; - using System.Reflection; - public enum XmlSchemaDatatypeVariety { Atomic, diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/DtdValidator.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/DtdValidator.cs index feade926601eb..aaa6bf7ab5b75 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/DtdValidator.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/DtdValidator.cs @@ -1,18 +1,18 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Collections; +using System.Text; +using System.IO; +using System.Net; +using System.Diagnostics; +using System.Xml.Schema; +using System.Xml.XPath; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Schema { - using System; - using System.Collections; - using System.Text; - using System.IO; - using System.Net; - using System.Diagnostics; - using System.Xml.Schema; - using System.Xml.XPath; - using System.Diagnostics.CodeAnalysis; - #pragma warning disable 618 internal sealed class DtdValidator : BaseValidator diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/FacetChecker.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/FacetChecker.cs index d97de55030156..cd109ff154cc5 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/FacetChecker.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/FacetChecker.cs @@ -1,20 +1,20 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using System.Xml.Schema; +using System.Xml.XPath; +using System.Diagnostics; +using System.Collections; +using System.Text; +using System.Text.RegularExpressions; +using System.Threading; +using System.Globalization; + namespace System.Xml.Schema { - using System; - using System.ComponentModel; - using System.Xml.Serialization; - using System.Xml.Schema; - using System.Xml.XPath; - using System.Diagnostics; - using System.Collections; - using System.Text; - using System.Text.RegularExpressions; - using System.Threading; - using System.Globalization; - internal abstract class FacetsChecker { private struct FacetsCompiler diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/NamespaceList.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/NamespaceList.cs index e4d26e3ccf542..e66f1f82aa574 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/NamespaceList.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/NamespaceList.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.Text; +using System.Diagnostics; + namespace System.Xml.Schema { - using System.Collections; - using System.Text; - using System.Diagnostics; - internal class NamespaceList { public enum ListType diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/Parser.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/Parser.cs index e2c2b263e76b0..32668940ff178 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/Parser.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/Parser.cs @@ -1,16 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Collections; +using System.Globalization; +using System.Text; +using System.IO; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Schema { - using System; - using System.Collections; - using System.Globalization; - using System.Text; - using System.IO; - using System.Diagnostics; - using System.Diagnostics.CodeAnalysis; - internal sealed partial class Parser { private SchemaType _schemaType; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/ParserAsync.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/ParserAsync.cs index be4c75527c211..fc5411781b4aa 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/ParserAsync.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/ParserAsync.cs @@ -1,17 +1,17 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -namespace System.Xml.Schema -{ - using System; - using System.Collections; - using System.Globalization; - using System.Text; - using System.IO; - using System.Diagnostics; +using System; +using System.Collections; +using System.Globalization; +using System.Text; +using System.IO; +using System.Diagnostics; - using System.Threading.Tasks; +using System.Threading.Tasks; +namespace System.Xml.Schema +{ internal sealed partial class Parser { public async Task StartParsingAsync(XmlReader reader, string? targetNamespace) diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/Preprocessor.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/Preprocessor.cs index b8bc2832ed6cb..88b99497108ad 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/Preprocessor.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/Preprocessor.cs @@ -1,16 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.IO; +using System.Threading; +using System.Diagnostics; +using System.Collections.Generic; +using System.Runtime.Versioning; +using System.Reflection; + namespace System.Xml.Schema { - using System.Collections; - using System.IO; - using System.Threading; - using System.Diagnostics; - using System.Collections.Generic; - using System.Runtime.Versioning; - using System.Reflection; - internal enum Compositor { Root, diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaAttDef.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaAttDef.cs index bbd11cb2766a5..f53134719d3ed 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaAttDef.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaAttDef.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Diagnostics; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Schema { - using System.Diagnostics; - using System.Collections.Generic; - using System.Diagnostics.CodeAnalysis; - /* * This class describes an attribute type and potential values. * This encapsulates the information for one Attdef * in an diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaCollectionpreProcessor.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaCollectionpreProcessor.cs index 5b997c5998578..d9fefe7799817 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaCollectionpreProcessor.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaCollectionpreProcessor.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.Collections.Generic; +using System.IO; +using System.Diagnostics; +using System.Runtime.Versioning; + namespace System.Xml.Schema { - using System.Collections; - using System.Collections.Generic; - using System.IO; - using System.Diagnostics; - using System.Runtime.Versioning; - #pragma warning disable 618 internal sealed class SchemaCollectionPreprocessor : BaseProcessor { diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaDeclBase.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaDeclBase.cs index 25a8d739e1e7f..c46f0622c8770 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaDeclBase.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaDeclBase.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Schema { - using System.Collections.Generic; - using System.Diagnostics; - using System.Diagnostics.CodeAnalysis; - internal abstract class SchemaDeclBase { internal enum Use diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaElementDecl.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaElementDecl.cs index b07b2fe2ae245..0e7d7b4812a2f 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaElementDecl.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaElementDecl.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Collections; +using System.Diagnostics; +using System.Collections.Generic; + namespace System.Xml.Schema { - using System; - using System.Collections; - using System.Diagnostics; - using System.Collections.Generic; - internal sealed class SchemaElementDecl : SchemaDeclBase, IDtdAttributeListInfo { private readonly Dictionary _attdefs = new Dictionary(); diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaEntity.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaEntity.cs index 755dd161e613c..d24fe163052a9 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaEntity.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaEntity.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; + namespace System.Xml.Schema { - using System; - using System.Diagnostics; - internal sealed class SchemaEntity : IDtdEntityInfo { private readonly XmlQualifiedName _qname; // Name of entity diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaNames.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaNames.cs index 3093c55f64542..40dd5bae94df9 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaNames.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaNames.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.Diagnostics; + namespace System.Xml.Schema { - using System.Collections; - using System.Diagnostics; - internal sealed class SchemaNames { private readonly XmlNameTable _nameTable; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaNamespacemanager.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaNamespacemanager.cs index 2b9518b547dde..600d7c0f357a7 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaNamespacemanager.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaNamespacemanager.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Collections; +using System.Collections.Generic; + namespace System.Xml.Schema { - using System; - using System.Diagnostics; - using System.Collections; - using System.Collections.Generic; - internal sealed class SchemaNamespaceManager : XmlNamespaceManager { private readonly XmlSchemaObject _node; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaNotation.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaNotation.cs index bb114f3019220..dea1a206899cc 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaNotation.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/SchemaNotation.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; + namespace System.Xml.Schema { - using System; - using System.Diagnostics; - internal sealed class SchemaNotation { internal const int SYSTEM = 0; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/ValidationState.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/ValidationState.cs index aa60c108b5c90..a877febf910fc 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/ValidationState.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/ValidationState.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Collections; +using System.Collections.Generic; +using System.Runtime.InteropServices; + namespace System.Xml.Schema { - using System; - using System.Collections; - using System.Collections.Generic; - using System.Runtime.InteropServices; - [StructLayout(LayoutKind.Explicit)] internal struct StateUnion { diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XdrBuilder.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XdrBuilder.cs index f493e850aebd4..1c7ba68239057 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XdrBuilder.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XdrBuilder.cs @@ -1,17 +1,17 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.IO; +using System.Collections; +using System.Collections.Generic; +using System.Diagnostics; +using System.ComponentModel; +using System.Globalization; +using System.Runtime.Versioning; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Schema { - using System.IO; - using System.Collections; - using System.Collections.Generic; - using System.Diagnostics; - using System.ComponentModel; - using System.Globalization; - using System.Runtime.Versioning; - using System.Diagnostics.CodeAnalysis; - /* * The XdrBuilder class parses the XDR Schema and * builds internal validation information diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XdrValidator.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XdrValidator.cs index 092fd0c5eefe0..1f770392fe73f 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XdrValidator.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XdrValidator.cs @@ -1,16 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.IO; +using System.Text; +using System.Collections; +using System.Diagnostics; +using System.Globalization; +using System.Runtime.Versioning; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Schema { - using System.IO; - using System.Text; - using System.Collections; - using System.Diagnostics; - using System.Globalization; - using System.Runtime.Versioning; - using System.Diagnostics.CodeAnalysis; - #pragma warning disable 618 internal sealed class XdrValidator : BaseValidator { diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchema.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchema.cs index f4f1595c758ee..383f372e05534 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchema.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchema.cs @@ -1,17 +1,17 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.IO; +using System.Collections; +using System.ComponentModel; +using System.Xml.Serialization; +using System.Threading; +using System.Diagnostics; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Schema { - using System.IO; - using System.Collections; - using System.ComponentModel; - using System.Xml.Serialization; - using System.Threading; - using System.Diagnostics; - using System.Collections.Generic; - using System.Diagnostics.CodeAnalysis; - [XmlRoot("schema", Namespace = XmlSchema.Namespace)] public class XmlSchema : XmlSchemaObject { diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAll.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAll.cs index 806764660104b..27d48000a8724 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAll.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAll.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Collections; - using System.Xml.Serialization; - public class XmlSchemaAll : XmlSchemaGroupBase { private XmlSchemaObjectCollection _items = new XmlSchemaObjectCollection(); diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAnnotated.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAnnotated.cs index 54e9676daf7dd..276efa89695a6 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAnnotated.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAnnotated.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Collections; - using System.Xml.Serialization; - public class XmlSchemaAnnotated : XmlSchemaObject { private string? _id; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAnnotation.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAnnotation.cs index d15371f18d4a0..0db209b7de1f5 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAnnotation.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAnnotation.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Collections; - using System.Xml.Serialization; - public class XmlSchemaAnnotation : XmlSchemaObject { private string? _id; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAny.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAny.cs index 053a5c2dc8f38..988cc27a3332b 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAny.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAny.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.ComponentModel; +using System.Xml.Serialization; +using System.Text; + namespace System.Xml.Schema { - using System.ComponentModel; - using System.Xml.Serialization; - using System.Text; - public class XmlSchemaAny : XmlSchemaParticle { private string? _ns; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAnyAttribute.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAnyAttribute.cs index 48775d8ca6752..6b5f8564679a8 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAnyAttribute.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAnyAttribute.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.ComponentModel; +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Collections; - using System.ComponentModel; - using System.Xml.Serialization; - public class XmlSchemaAnyAttribute : XmlSchemaAnnotated { private string? _ns; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAppInfo.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAppInfo.cs index 0434edf08b908..d86a1a6f4caef 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAppInfo.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAppInfo.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Collections; - using System.Xml.Serialization; - public class XmlSchemaAppInfo : XmlSchemaObject { private string? _source; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAttributeGroup.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAttributeGroup.cs index 36c56f39f488a..4397a92c4fdd4 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAttributeGroup.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAttributeGroup.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Collections; - using System.Xml.Serialization; - public class XmlSchemaAttributeGroup : XmlSchemaAnnotated { private string? _name; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAttributeGroupref.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAttributeGroupref.cs index e68a769883249..4887af0a99c34 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAttributeGroupref.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaAttributeGroupref.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.Diagnostics.CodeAnalysis; +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Collections; - using System.Diagnostics.CodeAnalysis; - using System.Xml.Serialization; - public class XmlSchemaAttributeGroupRef : XmlSchemaAnnotated { private XmlQualifiedName _refName = XmlQualifiedName.Empty; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaChoice.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaChoice.cs index b762baededeb4..259becc65707f 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaChoice.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaChoice.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Collections; - using System.Xml.Serialization; - public class XmlSchemaChoice : XmlSchemaGroupBase { private XmlSchemaObjectCollection _items = new XmlSchemaObjectCollection(); diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaCollection.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaCollection.cs index 39e4e68689e57..3436954d072bd 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaCollection.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaCollection.cs @@ -1,16 +1,15 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics.CodeAnalysis; +using System.Threading; +using System.Collections; +using System.Xml.Schema; +using System.Runtime.Versioning; + namespace System.Xml.Schema { - using System; - using System.Diagnostics.CodeAnalysis; - using System.Threading; - using System.Collections; - using System.Xml.Schema; - using System.Runtime.Versioning; - - /// /// The XmlSchemaCollection contains a set of namespace URI's. /// Each namespace also have an associated private data cache diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaComplexContent.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaComplexContent.cs index bc9f4a62ecf12..8f5214ec1ac22 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaComplexContent.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaComplexContent.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Xml.Serialization; - public class XmlSchemaComplexContent : XmlSchemaContentModel { private XmlSchemaContent? _content; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaComplexContentExtension.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaComplexContentExtension.cs index a0d4aaec7c1e4..572eb09a7aa28 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaComplexContentExtension.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaComplexContentExtension.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Collections; - using System.Xml.Serialization; - public class XmlSchemaComplexContentExtension : XmlSchemaContent { private XmlSchemaParticle? _particle; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaComplexContentRestriction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaComplexContentRestriction.cs index 972e0329cfa59..c0367354b75e7 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaComplexContentRestriction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaComplexContentRestriction.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Collections; - using System.Xml.Serialization; - public class XmlSchemaComplexContentRestriction : XmlSchemaContent { private XmlSchemaParticle? _particle; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaContent.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaContent.cs index 2e264d968b56d..a728aa66fb19f 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaContent.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaContent.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Collections; - using System.Xml.Serialization; - public abstract class XmlSchemaContent : XmlSchemaAnnotated { } diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaContentModel.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaContentModel.cs index ed13b55e18d9b..b7acc22672555 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaContentModel.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaContentModel.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Xml.Serialization; - public abstract class XmlSchemaContentModel : XmlSchemaAnnotated { [XmlIgnore] diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaContentProcessing.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaContentProcessing.cs index 057952db1a6cd..e4988de244c9c 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaContentProcessing.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaContentProcessing.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Xml.Serialization; - public enum XmlSchemaContentProcessing { [XmlIgnore] diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaDerivationMethod.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaDerivationMethod.cs index a30441ee84c29..c266d8a70511c 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaDerivationMethod.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaDerivationMethod.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.ComponentModel; +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Collections; - using System.ComponentModel; - using System.Xml.Serialization; - [Flags] public enum XmlSchemaDerivationMethod { diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaDocumentation.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaDocumentation.cs index 2e4046baa6f17..a97b88feadc20 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaDocumentation.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaDocumentation.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Collections; - using System.ComponentModel; - using System.Diagnostics.CodeAnalysis; - using System.Xml.Serialization; - public class XmlSchemaDocumentation : XmlSchemaObject { private string? _source; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaExternal.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaExternal.cs index bfeca6efdc250..fbbf0ec8112a1 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaExternal.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaExternal.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.ComponentModel; +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Collections; - using System.ComponentModel; - using System.Xml.Serialization; - public abstract class XmlSchemaExternal : XmlSchemaObject { private string? _location; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaFacet.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaFacet.cs index b359ae5e484f0..d32e87af59694 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaFacet.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaFacet.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.ComponentModel; +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.ComponentModel; - using System.Xml.Serialization; - internal enum FacetType { None, diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaForm.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaForm.cs index 13dcac06b0f34..69cd78db83b80 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaForm.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaForm.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Xml.Serialization; - // if change the enum, have to change xsdbuilder as well. /// /// [To be supplied.] diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaGroup.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaGroup.cs index 823b06342a90a..68c987cdcc487 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaGroup.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaGroup.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Xml.Serialization; - public class XmlSchemaGroup : XmlSchemaAnnotated { private string? _name; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaGroupBase.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaGroupBase.cs index 9678c855aa58c..3722af6e8ef55 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaGroupBase.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaGroupBase.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Xml.Serialization; - public abstract class XmlSchemaGroupBase : XmlSchemaParticle { internal XmlSchemaGroupBase() { } diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaGroupRef.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaGroupRef.cs index 4d081121cb3ba..2c229a4a025dc 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaGroupRef.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaGroupRef.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Xml.Serialization; - public class XmlSchemaGroupRef : XmlSchemaParticle { private XmlQualifiedName _refName = XmlQualifiedName.Empty; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaIdEntityConstraint.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaIdEntityConstraint.cs index 0c3fe22b8b39e..5eac17d1452be 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaIdEntityConstraint.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaIdEntityConstraint.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.ComponentModel; +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Collections; - using System.ComponentModel; - using System.Xml.Serialization; - public class XmlSchemaIdentityConstraint : XmlSchemaAnnotated { private string? _name; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaImport.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaImport.cs index d4d0821c78582..fad250474034d 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaImport.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaImport.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Xml.Serialization; - public class XmlSchemaImport : XmlSchemaExternal { private string? _ns; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaInclude.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaInclude.cs index 3809e49b72cff..c5691c96e319f 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaInclude.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaInclude.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Xml.Serialization; - public class XmlSchemaInclude : XmlSchemaExternal { private XmlSchemaAnnotation? _annotation; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaNotation.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaNotation.cs index 6b48aa3f9df53..58c8e11c14837 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaNotation.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaNotation.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Xml.Serialization; - public class XmlSchemaNotation : XmlSchemaAnnotated { private string? _name; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaObject.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaObject.cs index 74c1cbb611b04..7a2882ebb09bb 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaObject.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaObject.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Diagnostics; +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Diagnostics; - using System.Xml.Serialization; - public abstract class XmlSchemaObject { private int _lineNum; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaObjectCollection.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaObjectCollection.cs index 3db82f2e5c6bb..210f13523da3b 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaObjectCollection.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaObjectCollection.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.ComponentModel; +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Collections; - using System.ComponentModel; - using System.Xml.Serialization; - public class XmlSchemaObjectCollection : CollectionBase { private readonly XmlSchemaObject? _parent; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaObjectTable.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaObjectTable.cs index 138e2b529fe0a..8bccc26d7ceb0 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaObjectTable.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaObjectTable.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.Collections.Generic; +using System.Diagnostics; + namespace System.Xml.Schema { - using System.Collections; - using System.Collections.Generic; - using System.Diagnostics; - public class XmlSchemaObjectTable { private readonly Dictionary _table = new Dictionary(); diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaParticle.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaParticle.cs index ffb187db50c2d..665fada0d6574 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaParticle.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaParticle.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Xml.Serialization; - public abstract class XmlSchemaParticle : XmlSchemaAnnotated { [Flags] diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaRedefine.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaRedefine.cs index bb1196f9a0624..9e50bf14cc468 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaRedefine.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaRedefine.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Xml.Serialization; - public class XmlSchemaRedefine : XmlSchemaExternal { private readonly XmlSchemaObjectCollection _items = new XmlSchemaObjectCollection(); diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSequence.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSequence.cs index 9b989f79f2958..a13b9247a3ccc 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSequence.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSequence.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Xml.Serialization; - public class XmlSchemaSequence : XmlSchemaGroupBase { private XmlSchemaObjectCollection _items = new XmlSchemaObjectCollection(); diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleContent.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleContent.cs index 504b82af0bda0..37249e587147f 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleContent.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleContent.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Xml.Serialization; - public class XmlSchemaSimpleContent : XmlSchemaContentModel { private XmlSchemaContent? _content; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleContentExtension.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleContentExtension.cs index e12b079bde867..11f103f781a4c 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleContentExtension.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleContentExtension.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Xml.Serialization; - public class XmlSchemaSimpleContentExtension : XmlSchemaContent { private XmlSchemaObjectCollection _attributes = new XmlSchemaObjectCollection(); diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleContentRestriction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleContentRestriction.cs index 41f23fadcff86..704510bf974c6 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleContentRestriction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleContentRestriction.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Xml.Serialization; - public class XmlSchemaSimpleContentRestriction : XmlSchemaContent { private XmlQualifiedName _baseTypeName = XmlQualifiedName.Empty; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleType.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleType.cs index 62fe61a46dc9c..9c8078cf630b0 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleType.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleType.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.Serialization; +using System.Diagnostics; + namespace System.Xml.Schema { - using System.Xml.Serialization; - using System.Diagnostics; - public class XmlSchemaSimpleType : XmlSchemaType { private XmlSchemaSimpleTypeContent? _content; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleTypeList.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleTypeList.cs index fa326e15e435c..62d4b37dbd63d 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleTypeList.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleTypeList.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Xml.Serialization; - public class XmlSchemaSimpleTypeList : XmlSchemaSimpleTypeContent { private XmlQualifiedName _itemTypeName = XmlQualifiedName.Empty; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleTypeRestriction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleTypeRestriction.cs index f0e9d74ffd045..3e1df69dfe163 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleTypeRestriction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleTypeRestriction.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Collections; - using System.Xml.Serialization; - public class XmlSchemaSimpleTypeRestriction : XmlSchemaSimpleTypeContent { private XmlQualifiedName _baseTypeName = XmlQualifiedName.Empty; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleTypeUnion.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleTypeUnion.cs index 72ac95ec782e1..6b00df5af112a 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleTypeUnion.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSimpleTypeUnion.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Xml.Serialization; - public class XmlSchemaSimpleTypeUnion : XmlSchemaSimpleTypeContent { private readonly XmlSchemaObjectCollection _baseTypes = new XmlSchemaObjectCollection(); diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSubstitutionGroup.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSubstitutionGroup.cs index fbd403feeb63f..1e60a5029e7ed 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSubstitutionGroup.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaSubstitutionGroup.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Collections; - using System.Xml.Serialization; - internal class XmlSchemaSubstitutionGroup : XmlSchemaObject { private readonly ArrayList _membersList = new ArrayList(); diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaUse.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaUse.cs index 94c9d97b66e52..85ac600fbfd48 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaUse.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaUse.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.Serialization; + namespace System.Xml.Schema { - using System.Xml.Serialization; - //nzeng: if change the enum, have to change xsdbuilder as well. public enum XmlSchemaUse { diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XsdDateTime.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XsdDateTime.cs index 3a2422412916c..05adf65c48717 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XsdDateTime.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XsdDateTime.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Xml; +using System.Diagnostics; +using System.Text; + namespace System.Xml.Schema { - using System; - using System.Xml; - using System.Diagnostics; - using System.Text; - /// /// This enum specifies what format should be used when converting string to XsdDateTime /// diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XsdDuration.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XsdDuration.cs index a7c34f8b7d4e5..80358d208c796 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XsdDuration.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XsdDuration.cs @@ -2,13 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Globalization; +using System; +using System.Diagnostics; +using System.Text; namespace System.Xml.Schema { - using System; - using System.Diagnostics; - using System.Text; - /// /// This structure holds components of an Xsd Duration. It is used internally to support Xsd durations without loss /// of fidelity. XsdDuration structures are immutable once they've been created. diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XsdValidator.cs b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XsdValidator.cs index 5412bad32aaec..13003c038f0dc 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Schema/XsdValidator.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Schema/XsdValidator.cs @@ -1,18 +1,18 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.Collections.Specialized; +using System.Text; +using System.IO; +using System.Diagnostics; +using System.Xml.Schema; +using System.Xml.XPath; +using System.Runtime.Versioning; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Schema { - using System.Collections; - using System.Collections.Specialized; - using System.Text; - using System.IO; - using System.Diagnostics; - using System.Xml.Schema; - using System.Xml.XPath; - using System.Runtime.Versioning; - using System.Diagnostics.CodeAnalysis; - #pragma warning disable 618 internal sealed class XsdValidator : BaseValidator { diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/CodeGenerationoptions.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/CodeGenerationoptions.cs index 6f7ad17f4e4a3..1559ed356cf74 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/CodeGenerationoptions.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/CodeGenerationoptions.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.ComponentModel; +using System.Xml.Serialization; + namespace System.Xml.Serialization { - using System; - using System.ComponentModel; - using System.Xml.Serialization; - /// /// Specifies various flavours of XmlCodeExporter generated code. /// diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/CodeIdentifiers.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/CodeIdentifiers.cs index 54f1e2c0aea32..01123c8240cf6 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/CodeIdentifiers.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/CodeIdentifiers.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Collections; +using System.IO; +using System.Globalization; + namespace System.Xml.Serialization { - using System; - using System.Collections; - using System.IO; - using System.Globalization; - internal sealed class CaseInsensitiveKeyComparer : CaseInsensitiveComparer, IEqualityComparer { public CaseInsensitiveKeyComparer() : base(CultureInfo.CurrentCulture) diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/Configuration/DateTimeSerializationSection.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/Configuration/DateTimeSerializationSection.cs index c841409eaea8c..baa740ecbcc9e 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/Configuration/DateTimeSerializationSection.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/Configuration/DateTimeSerializationSection.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Configuration; +using System.ComponentModel; +using System.Globalization; +using System.Reflection; + namespace System.Xml.Serialization.Configuration { - using System; - using System.Configuration; - using System.ComponentModel; - using System.Globalization; - using System.Reflection; - internal sealed class DateTimeSerializationSection { public enum DateTimeSerializationMode diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/IXmlSerializable.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/IXmlSerializable.cs index bf007efb2d384..c00c36e60bba3 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/IXmlSerializable.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/IXmlSerializable.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.ComponentModel; +using System.Xml; +using System.Xml.Schema; + namespace System.Xml.Serialization { - using System.ComponentModel; - using System.Xml; - using System.Xml.Schema; - /// /// /// [To be supplied.] diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/IXmlTextParser.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/IXmlTextParser.cs index 4e1acb19e2581..cd172f8157070 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/IXmlTextParser.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/IXmlTextParser.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml; + namespace System.Xml.Serialization { - using System.Xml; - public interface IXmlTextParser { bool Normalized { get; set; } diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/ImportContext.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/ImportContext.cs index aac4e7ca97eb2..9dd6582ce6f6a 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/ImportContext.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/ImportContext.cs @@ -1,18 +1,18 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.IO; +using System.Xml; +using System.Xml.Schema; +using System.Xml.Serialization; +using System.Collections; +using System.Collections.Specialized; +using System.Reflection; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Serialization { - using System; - using System.IO; - using System.Xml; - using System.Xml.Schema; - using System.Xml.Serialization; - using System.Collections; - using System.Collections.Specialized; - using System.Reflection; - using System.Diagnostics.CodeAnalysis; - public class ImportContext { private readonly bool _shareTypes; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/Mappings.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/Mappings.cs index 3610588efded7..6b093549bb157 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/Mappings.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/Mappings.cs @@ -1,20 +1,20 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Reflection; +using System.Collections; +using System.Collections.Generic; +using System.Diagnostics; +using System.Xml.Schema; +using System; +using System.Text; +using System.ComponentModel; +using System.Xml; +using System.Xml.Serialization; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Serialization { - using System.Reflection; - using System.Collections; - using System.Collections.Generic; - using System.Diagnostics; - using System.Xml.Schema; - using System; - using System.Text; - using System.ComponentModel; - using System.Xml; - using System.Xml.Serialization; - using System.Diagnostics.CodeAnalysis; - // These classes represent a mapping between classes and a particular XML format. // There are two class of mapping information: accessors (such as elements and // attributes), and mappings (which specify the type of an accessor). diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/Models.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/Models.cs index 792992c3115eb..b9254d8f30f6c 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/Models.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/Models.cs @@ -1,15 +1,15 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Reflection; +using System.Collections; +using System.Diagnostics; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Serialization { - using System; - using System.Reflection; - using System.Collections; - using System.Diagnostics; - using System.Collections.Generic; - using System.Diagnostics.CodeAnalysis; - // These classes define the abstract serialization model, e.g. the rules for WHAT is serialized. // The answer of HOW the values are serialized is answered by a particular reflection importer // by looking for a particular set of custom attributes specific to the serialization format diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/NameTable.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/NameTable.cs index c3ecf346d0926..769f329d6d0d9 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/NameTable.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/NameTable.cs @@ -2,14 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Diagnostics.CodeAnalysis; +using System.Xml; +using System; +using System.Collections; +using System.Collections.Generic; namespace System.Xml.Serialization { - using System.Xml; - using System; - using System.Collections; - using System.Collections.Generic; - internal sealed class NameKey { private readonly string? _ns; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SchemaImporter.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SchemaImporter.cs index 0d62782addbb9..ef7a31fecb186 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SchemaImporter.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SchemaImporter.cs @@ -1,21 +1,19 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -namespace System.Xml.Serialization -{ - using System; - using System.Xml.Schema; - using System.Collections; - using System.ComponentModel; - using System.Diagnostics.CodeAnalysis; - using System.Reflection; - using System.Configuration; - using System.Xml.Serialization.Configuration; - +using System.Collections; +using System.ComponentModel; +using System.Configuration; #if DEBUG - using System.Diagnostics; +using System.Diagnostics; #endif +using System.Diagnostics.CodeAnalysis; +using System.Reflection; +using System.Xml.Schema; +using System.Xml.Serialization.Configuration; +namespace System.Xml.Serialization +{ public abstract class SchemaImporter { private XmlSchemas _schemas; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SchemaObjectWriter.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SchemaObjectWriter.cs index 673fd36aaad97..0e082c3b56e21 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SchemaObjectWriter.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SchemaObjectWriter.cs @@ -1,18 +1,18 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Text; +using System.IO; +using System.Xml; +using System.Xml.Schema; +using System.Xml.Serialization; +using System.Collections; +using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Serialization { - using System; - using System.Text; - using System.IO; - using System.Xml; - using System.Xml.Schema; - using System.Xml.Serialization; - using System.Collections; - using System.Collections.Specialized; - using System.Diagnostics.CodeAnalysis; - internal sealed class XmlAttributeComparer : IComparer { public int Compare(object? o1, object? o2) diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapAttributeAttribute.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapAttributeAttribute.cs index ac54b7c6a6f49..a16021e8fbf68 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapAttributeAttribute.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapAttributeAttribute.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Serialization { - using System; - using System.Diagnostics.CodeAnalysis; - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue)] public class SoapAttributeAttribute : System.Attribute { diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapAttributeOverrides.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapAttributeOverrides.cs index 172516362b11e..664c70f52ffb5 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapAttributeOverrides.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapAttributeOverrides.cs @@ -1,15 +1,15 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Reflection; +using System.Collections; +using System.IO; +using System.Xml.Schema; +using System; +using System.ComponentModel; + namespace System.Xml.Serialization { - using System.Reflection; - using System.Collections; - using System.IO; - using System.Xml.Schema; - using System; - using System.ComponentModel; - public class SoapAttributeOverrides { private readonly Hashtable _types = new Hashtable(); diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapElementAttribute.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapElementAttribute.cs index 166e7cfa719c5..873ccf521e507 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapElementAttribute.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapElementAttribute.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Serialization { - using System; - using System.Diagnostics.CodeAnalysis; - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue)] public class SoapElementAttribute : System.Attribute { diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapEnumAttribute.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapEnumAttribute.cs index 54a74af1be20c..50309963253f1 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapEnumAttribute.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapEnumAttribute.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Serialization { - using System; - using System.Diagnostics.CodeAnalysis; - [AttributeUsage(AttributeTargets.Field)] public class SoapEnumAttribute : System.Attribute { diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapIgnoreAttribute.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapIgnoreAttribute.cs index 23c6971bbdda1..02c64385f1313 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapIgnoreAttribute.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapIgnoreAttribute.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; + namespace System.Xml.Serialization { - using System; - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue)] public class SoapIgnoreAttribute : System.Attribute { diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapIncludeAttribute.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapIncludeAttribute.cs index 1b66ac7409e76..cb552768be7a3 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapIncludeAttribute.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapIncludeAttribute.cs @@ -3,8 +3,6 @@ namespace System.Xml.Serialization { - using System; - [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface | AttributeTargets.Method, AllowMultiple = true)] public class SoapIncludeAttribute : System.Attribute { diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapReflectionImporter.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapReflectionImporter.cs index ac42ce01c5ced..286a8ba99caf8 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapReflectionImporter.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapReflectionImporter.cs @@ -1,19 +1,19 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Reflection; +using System; +using System.Globalization; +using System.Xml.Schema; +using System.Collections.Generic; +using System.ComponentModel; +using System.Threading; +using System.Xml; +using System.Xml.Serialization; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Serialization { - using System.Reflection; - using System; - using System.Globalization; - using System.Xml.Schema; - using System.Collections.Generic; - using System.ComponentModel; - using System.Threading; - using System.Xml; - using System.Xml.Serialization; - using System.Diagnostics.CodeAnalysis; - public class SoapReflectionImporter { private readonly TypeScope _typeScope; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapSchemamember.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapSchemamember.cs index 74e9b4a6567ee..ec46097380f83 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapSchemamember.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapSchemamember.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics.CodeAnalysis; +using System.Xml; + namespace System.Xml.Serialization { - using System; - using System.Diagnostics.CodeAnalysis; - using System.Xml; - public class SoapSchemaMember { private string? _memberName; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapTypeAttribute.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapTypeAttribute.cs index 0d31f1523476d..799bc0aed2766 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapTypeAttribute.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/SoapTypeAttribute.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Serialization { - using System; - using System.Diagnostics.CodeAnalysis; - [AttributeUsage(AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Interface | AttributeTargets.Struct)] public class SoapTypeAttribute : System.Attribute { diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/TypeExtensions.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/TypeExtensions.cs index 0cffc2174d1c1..6d02274c049e4 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/TypeExtensions.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/TypeExtensions.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + namespace System.Xml.Serialization { - using System; - using System.Diagnostics.CodeAnalysis; - using System.Reflection; - internal static class TypeExtensions { private const string ImplicitCastOperatorName = "op_Implicit"; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/Types.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/Types.cs index 2289e3cdaf57c..c1f868cd4bc26 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/Types.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/Types.cs @@ -1,18 +1,18 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Collections; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; +using System.Text; +using System.Xml; +using System.Xml.Schema; + namespace System.Xml.Serialization { - using System; - using System.Collections; - using System.Collections.Generic; - using System.Diagnostics; - using System.Diagnostics.CodeAnalysis; - using System.Reflection; - using System.Text; - using System.Xml; - using System.Xml.Schema; - // These classes provide a higher level view on reflection specific to // Xml serialization, for example: // - allowing one to talk about types w/o having them compiled yet diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlAnyElementAttributes.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlAnyElementAttributes.cs index bd57b3492bce4..00b1d398e57f7 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlAnyElementAttributes.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlAnyElementAttributes.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Reflection; +using System.Collections; +using System.ComponentModel; + namespace System.Xml.Serialization { - using System; - using System.Reflection; - using System.Collections; - using System.ComponentModel; - /// /// [To be supplied.] /// diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlArrayItemAttributes.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlArrayItemAttributes.cs index 88ebed304c7e6..81251219246f3 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlArrayItemAttributes.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlArrayItemAttributes.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Reflection; +using System.Collections; +using System.ComponentModel; + namespace System.Xml.Serialization { - using System; - using System.Reflection; - using System.Collections; - using System.ComponentModel; - /// /// [To be supplied.] /// diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlAttributeOverrides.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlAttributeOverrides.cs index 56f0d8bb5e366..0786062cf8255 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlAttributeOverrides.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlAttributeOverrides.cs @@ -1,16 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Reflection; +using System.Collections; +using System.IO; +using System.Xml.Schema; +using System; +using System.ComponentModel; +using System.Collections.Generic; + namespace System.Xml.Serialization { - using System.Reflection; - using System.Collections; - using System.IO; - using System.Xml.Schema; - using System; - using System.ComponentModel; - using System.Collections.Generic; - /// /// [To be supplied.] /// diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlElementAttributes.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlElementAttributes.cs index ff016f0a09d60..1fb46e9def76e 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlElementAttributes.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlElementAttributes.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Reflection; +using System.Collections; +using System.ComponentModel; + namespace System.Xml.Serialization { - using System; - using System.Reflection; - using System.Collections; - using System.ComponentModel; - /// /// [To be supplied.] /// diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlReflectionImporter.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlReflectionImporter.cs index 6f4cdfe205a4b..34b44f67c0790 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlReflectionImporter.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlReflectionImporter.cs @@ -1,22 +1,22 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Reflection; +using System; +using System.Xml.Schema; +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Threading; +using System.Diagnostics; +using System.Xml; +using System.Xml.Serialization; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; + namespace System.Xml.Serialization { - using System.Reflection; - using System; - using System.Xml.Schema; - using System.Collections; - using System.Collections.Generic; - using System.ComponentModel; - using System.Globalization; - using System.Threading; - using System.Diagnostics; - using System.Xml; - using System.Xml.Serialization; - using System.Diagnostics.CodeAnalysis; - using System.Runtime.CompilerServices; - /// /// /// [To be supplied.] diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSchemaExporter.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSchemaExporter.cs index c3b75d73ad7b3..cef6c76893b2b 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSchemaExporter.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSchemaExporter.cs @@ -1,16 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Collections; +using System.Xml.Schema; +using System.ComponentModel; +using System.Diagnostics; +using System.Globalization; +using System.Reflection; + namespace System.Xml.Serialization { - using System; - using System.Collections; - using System.Xml.Schema; - using System.ComponentModel; - using System.Diagnostics; - using System.Globalization; - using System.Reflection; - public class XmlSchemaExporter { internal const XmlSchemaForm elementFormDefault = XmlSchemaForm.Qualified; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSchemaImporter.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSchemaImporter.cs index 02356883d39fe..f61924791f37c 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSchemaImporter.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSchemaImporter.cs @@ -1,23 +1,21 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -namespace System.Xml.Serialization -{ - using System; - using System.Xml.Schema; - using System.Collections; - using System.Collections.Generic; - using System.ComponentModel; - using System.Diagnostics.CodeAnalysis; - using System.Reflection; - using System.Xml.Serialization.Configuration; - using System.Collections.Specialized; - using System.Globalization; - +using System.Collections; +using System.Collections.Generic; +using System.Collections.Specialized; +using System.ComponentModel; #if DEBUG - using System.Diagnostics; +using System.Diagnostics; #endif +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Reflection; +using System.Xml.Schema; +using System.Xml.Serialization.Configuration; +namespace System.Xml.Serialization +{ public class XmlSchemaImporter : SchemaImporter { [RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSchemaProviderAttribute.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSchemaProviderAttribute.cs index 2874c44b8dfa7..ff891ea848ea9 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSchemaProviderAttribute.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSchemaProviderAttribute.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Xml.Schema; + namespace System.Xml.Serialization { - using System; - using System.Xml.Schema; - /// /// [To be supplied.] /// diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSchemas.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSchemas.cs index 239f647073a23..154d804118f55 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSchemas.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSchemas.cs @@ -1,23 +1,23 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.Collections.Generic; +using System.IO; +using System; +using System.Globalization; +using System.ComponentModel; +using System.Xml.Serialization; +using System.Xml.Schema; +using System.Diagnostics; +using System.Threading; +using System.Security; +using System.Net; +using System.Reflection; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Serialization { - using System.Collections; - using System.Collections.Generic; - using System.IO; - using System; - using System.Globalization; - using System.ComponentModel; - using System.Xml.Serialization; - using System.Xml.Schema; - using System.Diagnostics; - using System.Threading; - using System.Security; - using System.Net; - using System.Reflection; - using System.Diagnostics.CodeAnalysis; - public class XmlSchemas : CollectionBase, IEnumerable { private XmlSchemaSet? _schemaSet; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationGeneratedCode.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationGeneratedCode.cs index 47c27f17c897b..8ff09f27cd9ca 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationGeneratedCode.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationGeneratedCode.cs @@ -1,18 +1,18 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.IO; +using System.Collections; +using System.ComponentModel; +using System.Threading; +using System.Reflection; +using System.Security; +using System.Globalization; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Serialization { - using System; - using System.IO; - using System.Collections; - using System.ComponentModel; - using System.Threading; - using System.Reflection; - using System.Security; - using System.Globalization; - using System.Diagnostics.CodeAnalysis; - /// public abstract class XmlSerializationGeneratedCode { diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationILGen.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationILGen.cs index a6a540655078d..e249fe230ba6e 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationILGen.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationILGen.cs @@ -1,16 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Collections; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; +using System.Reflection.Emit; +using System.Text.RegularExpressions; + namespace System.Xml.Serialization { - using System; - using System.Collections; - using System.Collections.Generic; - using System.Diagnostics.CodeAnalysis; - using System.Reflection; - using System.Reflection.Emit; - using System.Text.RegularExpressions; - internal class XmlSerializationILGen { private int _nextMethodNumber; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationReader.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationReader.cs index f5f4dfbb2183e..90b5287fa4d14 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationReader.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationReader.cs @@ -1,20 +1,20 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Collections; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.IO; +using System.Reflection; +using System.Security; +using System.Xml; +using System.Xml.Schema; + namespace System.Xml.Serialization { - using System; - using System.Collections; - using System.Collections.Generic; - using System.Diagnostics; - using System.Diagnostics.CodeAnalysis; - using System.Globalization; - using System.IO; - using System.Reflection; - using System.Security; - using System.Xml; - using System.Xml.Schema; - /// public abstract class XmlSerializationReader : XmlSerializationGeneratedCode { diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationReaderILGen.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationReaderILGen.cs index 34cc8e81b8bb7..181daac70647a 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationReaderILGen.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationReaderILGen.cs @@ -1,21 +1,21 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Collections; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.Reflection; +using System.Reflection.Emit; +using System.Security; +using System.Text.RegularExpressions; +using System.Xml; +using System.Xml.Schema; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Serialization { - using System; - using System.Collections; - using System.Collections.Generic; - using System.Diagnostics; - using System.Globalization; - using System.Reflection; - using System.Reflection.Emit; - using System.Security; - using System.Text.RegularExpressions; - using System.Xml; - using System.Xml.Schema; - using System.Diagnostics.CodeAnalysis; - internal sealed partial class XmlSerializationReaderILGen : XmlSerializationILGen { private readonly Dictionary _idNames = new Dictionary(); diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationWriter.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationWriter.cs index 57620778c5517..75e63470fdc36 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationWriter.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationWriter.cs @@ -1,26 +1,26 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.IO; +using System.Collections; +using System.Reflection; +using System.Reflection.Emit; +using System.Xml.Schema; +using System.ComponentModel; +using System.Diagnostics; +using System.Globalization; +using System.Text; +using System.Threading; +using System.Runtime.Versioning; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Xml; +using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; + namespace System.Xml.Serialization { - using System; - using System.IO; - using System.Collections; - using System.Reflection; - using System.Reflection.Emit; - using System.Xml.Schema; - using System.ComponentModel; - using System.Diagnostics; - using System.Globalization; - using System.Text; - using System.Threading; - using System.Runtime.Versioning; - using System.Collections.Generic; - using System.Xml.Serialization; - using System.Xml; - using System.Diagnostics.CodeAnalysis; - using System.Runtime.CompilerServices; - /// public abstract class XmlSerializationWriter : XmlSerializationGeneratedCode { diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializerAssemblyAttribute.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializerAssemblyAttribute.cs index c85a8e890c7a3..e1523cd928e5e 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializerAssemblyAttribute.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializerAssemblyAttribute.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; + namespace System.Xml.Serialization { - using System; - [AttributeUsage(AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Interface | AttributeTargets.Struct, AllowMultiple = false)] public sealed class XmlSerializerAssemblyAttribute : System.Attribute { diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializerFactory.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializerFactory.cs index 301f3c48ef028..f73d5e52a264e 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializerFactory.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializerFactory.cs @@ -1,21 +1,21 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Reflection; +using System.Collections; +using System.IO; +using System.Xml.Schema; +using System; +using System.Text; +using System.Threading; +using System.Globalization; +using System.Xml.Serialization.Configuration; +using System.Diagnostics; +using System.Xml.Serialization; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Serialization { - using System.Reflection; - using System.Collections; - using System.IO; - using System.Xml.Schema; - using System; - using System.Text; - using System.Threading; - using System.Globalization; - using System.Xml.Serialization.Configuration; - using System.Diagnostics; - using System.Xml.Serialization; - using System.Diagnostics.CodeAnalysis; - public class XmlSerializerFactory { [RequiresUnreferencedCode(XmlSerializer.TrimSerializationWarning)] diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializerNamespaces.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializerNamespaces.cs index 9a5bb593d2ae7..c514bd7315b1b 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializerNamespaces.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializerNamespaces.cs @@ -1,17 +1,17 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Reflection; +using System.Collections; +using System.IO; +using System.Xml.Schema; +using System; +using System.Collections.Generic; +using System.Xml; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Serialization { - using System.Reflection; - using System.Collections; - using System.IO; - using System.Xml.Schema; - using System; - using System.Collections.Generic; - using System.Xml; - using System.Diagnostics.CodeAnalysis; - /// /// [To be supplied.] /// diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializerVersionAttribute.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializerVersionAttribute.cs index 4a24276bc63db..369e2ecd1a35e 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializerVersionAttribute.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializerVersionAttribute.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; + namespace System.Xml.Serialization { - using System; - [AttributeUsage(AttributeTargets.Assembly)] public sealed class XmlSerializerVersionAttribute : System.Attribute { diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/Xmlcustomformatter.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/Xmlcustomformatter.cs index e2d2a962d1f7f..df2d7f58fdd5d 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/Xmlcustomformatter.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/Xmlcustomformatter.cs @@ -1,19 +1,19 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Xml; +using System.Globalization; +using System.ComponentModel; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Text; +using System.Collections; +using System.Configuration; +using System.Xml.Serialization.Configuration; + namespace System.Xml.Serialization { - using System; - using System.Xml; - using System.Globalization; - using System.ComponentModel; - using System.Diagnostics; - using System.Diagnostics.CodeAnalysis; - using System.Text; - using System.Collections; - using System.Configuration; - using System.Xml.Serialization.Configuration; - /// /// The class provides a set of static methods for converting /// primitive type values to and from their XML string representations. diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/_Events.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/_Events.cs index b0633be8f26f2..0e07a3923b997 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/_Events.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/_Events.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.IO; +using System; +using System.Collections; +using System.ComponentModel; +using System.Xml; + namespace System.Xml.Serialization { - using System.IO; - using System; - using System.Collections; - using System.ComponentModel; - using System.Xml; - public delegate void XmlAttributeEventHandler(object? sender, XmlAttributeEventArgs e); public class XmlAttributeEventArgs : EventArgs diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/indentedWriter.cs b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/indentedWriter.cs index a1dbe3ea07de7..69b574ab27a26 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Serialization/indentedWriter.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Serialization/indentedWriter.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.IO; + namespace System.Xml.Serialization { - using System.IO; - /// /// This class will write to a stream and manage indentation. /// diff --git a/src/libraries/System.Private.Xml/src/System/Xml/XPath/Internal/XPathMultyIterator.cs b/src/libraries/System.Private.Xml/src/System/Xml/XPath/Internal/XPathMultyIterator.cs index e35ec3f253fa9..edc35a6ce0cd7 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/XPath/Internal/XPathMultyIterator.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/XPath/Internal/XPathMultyIterator.cs @@ -1,15 +1,15 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Xml; +using System.Xml.XPath; +using System.Diagnostics; +using System.Globalization; +using System.Collections; + namespace MS.Internal.Xml.XPath { - using System; - using System.Xml; - using System.Xml.XPath; - using System.Diagnostics; - using System.Globalization; - using System.Collections; - internal sealed class XPathMultyIterator : ResetableIterator { private ResetableIterator[] arr; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/XmlComplianceUtil.cs b/src/libraries/System.Private.Xml/src/System/Xml/XmlComplianceUtil.cs index 029cde9e66168..569faff1d3339 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/XmlComplianceUtil.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/XmlComplianceUtil.cs @@ -3,11 +3,10 @@ using System; using System.IO; +using System.Text; namespace System.Xml { - using System.Text; - internal static class XmlComplianceUtil { // Replaces \r\n, \n, \r and \t with single space (0x20) and then removes spaces diff --git a/src/libraries/System.Private.Xml/src/System/Xml/XmlResolver.cs b/src/libraries/System.Private.Xml/src/System/Xml/XmlResolver.cs index 3385ac614c3ee..87d23a5341ce4 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/XmlResolver.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/XmlResolver.cs @@ -1,17 +1,17 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.IO; +using System.Text; +using System.Security; +using System.Net; +using System.Threading.Tasks; +using System.Runtime.Versioning; +using System.Diagnostics; + namespace System.Xml { - using System; - using System.IO; - using System.Text; - using System.Security; - using System.Net; - using System.Threading.Tasks; - using System.Runtime.Versioning; - using System.Diagnostics; - /// /// Resolves external XML resources named by a Uniform /// Resource Identifier (URI). This class is diff --git a/src/libraries/System.Private.Xml/src/System/Xml/XmlSecureResolver.cs b/src/libraries/System.Private.Xml/src/System/Xml/XmlSecureResolver.cs index 330feb5378a19..aae411766ba0d 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/XmlSecureResolver.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/XmlSecureResolver.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Net; +using System.Security; +using System.Runtime.Versioning; + namespace System.Xml { - using System.Net; - using System.Security; - using System.Runtime.Versioning; - public partial class XmlSecureResolver : XmlResolver { private readonly XmlResolver _resolver; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/IlGen/XmlILModule.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/IlGen/XmlILModule.cs index 3d09204176556..74ea022bc03b6 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/IlGen/XmlILModule.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/IlGen/XmlILModule.cs @@ -8,11 +8,10 @@ using System.Security; using System.Xml.Xsl.Runtime; using System.Runtime.Versioning; +using DebuggingModes = System.Diagnostics.DebuggableAttribute.DebuggingModes; namespace System.Xml.Xsl.IlGen { - using DebuggingModes = DebuggableAttribute.DebuggingModes; - internal enum XmlILMethodAttributes { None = 0, diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/IlGen/XmlIlVisitor.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/IlGen/XmlIlVisitor.cs index acc522636f0ec..09a98e9b9dbbc 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/IlGen/XmlIlVisitor.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/IlGen/XmlIlVisitor.cs @@ -15,11 +15,10 @@ using System.Xml.Xsl.Qil; using System.Xml.Xsl.Runtime; using System.Diagnostics.CodeAnalysis; +using TypeFactory = System.Xml.Xsl.XmlQueryTypeFactory; namespace System.Xml.Xsl.IlGen { - using TypeFactory = System.Xml.Xsl.XmlQueryTypeFactory; - /// /// Creates Msil code for an entire QilExpression graph. Code is generated in one of two modes: push or /// pull. In push mode, code is generated to push the values in an iterator to the XmlWriter diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Runtime/XmlAttributeCache.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Runtime/XmlAttributeCache.cs index 2cbe985cdfe60..92ec74f990e17 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Runtime/XmlAttributeCache.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Runtime/XmlAttributeCache.cs @@ -1,16 +1,15 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; +using System.Xml.Schema; + #nullable disable namespace System.Xml.Xsl.Runtime { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - using System.Xml.Schema; - - /// /// This writer supports only writer methods which write attributes. Attributes are stored in a /// data structure until StartElementContent() is called, at which time the attributes are flushed diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Runtime/XmlQueryContext.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Runtime/XmlQueryContext.cs index 3aa16dd7e9c7a..c87489583666e 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Runtime/XmlQueryContext.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Runtime/XmlQueryContext.cs @@ -14,11 +14,10 @@ using System.Runtime.Versioning; using System.Diagnostics.CodeAnalysis; using System.Xml.Xsl.Xslt; +using System.Reflection; namespace System.Xml.Xsl.Runtime { - using Reflection; - /// /// The context of a query consists of all user-provided information which influences the operation of the /// query. The context manages the following information: diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XPath/XPathBuilder.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XPath/XPathBuilder.cs index 8e83ca7fbb4c2..2489af2c5b02a 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XPath/XPathBuilder.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XPath/XPathBuilder.cs @@ -8,14 +8,13 @@ using System.Xml.Schema; using System.Xml.XPath; using System.Xml.Xsl.Qil; +using FunctionInfo = System.Xml.Xsl.XPath.XPathBuilder.FunctionInfo; +using T = System.Xml.Xsl.XmlQueryTypeFactory; //#define StopMaskOptimisation namespace System.Xml.Xsl.XPath { - using FunctionInfo = XPathBuilder.FunctionInfo; - using T = XmlQueryTypeFactory; - internal class XPathBuilder : IXPathBuilder, IXPathEnvironment { private readonly XPathQilFactory _f; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XPath/XPathParser.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XPath/XPathParser.cs index 49ed3bfde39c8..d4f365b25830a 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XPath/XPathParser.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XPath/XPathParser.cs @@ -3,11 +3,10 @@ using System.Collections.Generic; using System.Diagnostics; +using XPathNodeType = System.Xml.XPath.XPathNodeType; namespace System.Xml.Xsl.XPath { - using XPathNodeType = System.Xml.XPath.XPathNodeType; - internal sealed class XPathParser { private XPathScanner? _scanner; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XPath/XPathQilFactory.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XPath/XPathQilFactory.cs index 6ef90e31efd0f..841b4bf8ae795 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XPath/XPathQilFactory.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XPath/XPathQilFactory.cs @@ -5,11 +5,10 @@ using System.Xml.Schema; using System.Xml.Xsl.Qil; using System.Xml.Xsl.Runtime; +using T = System.Xml.Xsl.XmlQueryTypeFactory; namespace System.Xml.Xsl.XPath { - using T = XmlQueryTypeFactory; - internal class XPathQilFactory : QilPatternFactory { public XPathQilFactory(QilFactory f, bool debug) : base(f, debug) diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XmlQueryTypeFactory.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XmlQueryTypeFactory.cs index f04971a80de45..d80222f4751d7 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XmlQueryTypeFactory.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XmlQueryTypeFactory.cs @@ -7,11 +7,10 @@ using System.IO; using System.Xml.Schema; using System.Xml.XPath; +using TF = System.Xml.Xsl.XmlQueryTypeFactory; namespace System.Xml.Xsl { - using TF = XmlQueryTypeFactory; - /// /// This class is the only way to create concrete instances of the abstract XmlQueryType class. /// Once basic types have been created, they can be combined and transformed in various ways. diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/CompilerScopeManager.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/CompilerScopeManager.cs index e3e8331c6e127..dc7fab84fe754 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/CompilerScopeManager.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/CompilerScopeManager.cs @@ -3,11 +3,10 @@ using System.Diagnostics; using System.Diagnostics.CodeAnalysis; +using QilName = System.Xml.Xsl.Qil.QilName; namespace System.Xml.Xsl.Xslt { - using QilName = System.Xml.Xsl.Qil.QilName; - // Compiler scope manager keeps track of // Variable declarations // Namespace declarations diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/Focus.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/Focus.cs index cce691ba93b54..e3aa61adbfa94 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/Focus.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/Focus.cs @@ -5,11 +5,10 @@ using System.Diagnostics; using System.Xml.Xsl.XPath; using System.Xml.Xsl.Qil; +using T = System.Xml.Xsl.XmlQueryTypeFactory; namespace System.Xml.Xsl.Xslt { - using T = XmlQueryTypeFactory; - // http://www.w3.org/TR/xslt20/#dt-singleton-focus internal enum SingletonFocusType { diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/InvokeGenerator.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/InvokeGenerator.cs index 3925e60fe18d9..56ab87994828a 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/InvokeGenerator.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/InvokeGenerator.cs @@ -4,11 +4,10 @@ using System.Collections.Generic; using System.Diagnostics; using System.Xml.Xsl.Qil; +using T = System.Xml.Xsl.XmlQueryTypeFactory; namespace System.Xml.Xsl.Xslt { - using T = XmlQueryTypeFactory; - /** InvokeGenerator is one of the trickiest peaces here. ARGS: diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/MatcherBuilder.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/MatcherBuilder.cs index 517f6815ee1cf..b1efa9b34e45e 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/MatcherBuilder.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/MatcherBuilder.cs @@ -6,11 +6,10 @@ using System.Diagnostics.CodeAnalysis; using System.Xml.Xsl.Qil; using System.Xml.Xsl.XPath; +using T = System.Xml.Xsl.XmlQueryTypeFactory; namespace System.Xml.Xsl.Xslt { - using T = XmlQueryTypeFactory; - #region Comments /* The MatcherBuilder class implements xsl:apply-templates/imports logic, grouping patterns * first by node type, then by node name of their last StepPattern. For example, suppose that diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/QilGenerator.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/QilGenerator.cs index d9b6de4bf1d02..cb04ce9368345 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/QilGenerator.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/QilGenerator.cs @@ -15,12 +15,11 @@ using System.Xml.Xsl.Qil; using System.Xml.Xsl.Runtime; using System.Xml.Xsl.XPath; +using ScopeRecord = System.Xml.Xsl.Xslt.CompilerScopeManager.ScopeRecord; +using T = System.Xml.Xsl.XmlQueryTypeFactory; namespace System.Xml.Xsl.Xslt { - using ScopeRecord = CompilerScopeManager.ScopeRecord; - using T = XmlQueryTypeFactory; - // Everywhere in this code in case of error in the stylesheet we should call ReportError or ReportWarning internal sealed class ReferenceReplacer : QilReplaceVisitor diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/QilGeneratorEnv.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/QilGeneratorEnv.cs index af39a230b3478..b61146928c84f 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/QilGeneratorEnv.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/QilGeneratorEnv.cs @@ -9,12 +9,11 @@ using System.Xml.Xsl.Qil; using System.Xml.Xsl.Runtime; using System.Xml.Xsl.XPath; +using FunctionInfo = System.Xml.Xsl.XPath.XPathBuilder.FunctionInfo; +using T = System.Xml.Xsl.XmlQueryTypeFactory; namespace System.Xml.Xsl.Xslt { - using FunctionInfo = XPathBuilder.FunctionInfo; - using T = XmlQueryTypeFactory; - internal sealed partial class QilGenerator : IXPathEnvironment { // Everywhere in this code in case of error in the stylesheet we should throw XslLoadException. diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XPathPatternBuilder.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XPathPatternBuilder.cs index aa1acce63d162..7a10067e6d96a 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XPathPatternBuilder.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XPathPatternBuilder.cs @@ -10,11 +10,10 @@ using System.Xml.Xsl.Qil; using System.Xml.Xsl.XPath; using System.Diagnostics.CodeAnalysis; +using T = System.Xml.Xsl.XmlQueryTypeFactory; namespace System.Xml.Xsl.Xslt { - using T = XmlQueryTypeFactory; - internal sealed class XPathPatternBuilder : XPathPatternParser.IPatternBuilder { private readonly XPathPredicateEnvironment _predicateEnvironment; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XPathPatternParser.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XPathPatternParser.cs index 2cae17eacbdc5..69033896607e0 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XPathPatternParser.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XPathPatternParser.cs @@ -6,12 +6,11 @@ using System.Xml; using System.Xml.Xsl.Qil; using System.Xml.Xsl.XPath; +using XPathParser = System.Xml.Xsl.XPath.XPathParser; +using XPathNodeType = System.Xml.XPath.XPathNodeType; namespace System.Xml.Xsl.Xslt { - using XPathParser = XPathParser; - using XPathNodeType = System.Xml.XPath.XPathNodeType; - internal sealed class XPathPatternParser { public interface IPatternBuilder : IXPathBuilder diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XslAst.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XslAst.cs index 90458c867d104..224c77d5cfd3e 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XslAst.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XslAst.cs @@ -7,12 +7,11 @@ using System.Diagnostics; using System.Globalization; using System.Xml.Xsl.Qil; +using ContextInfo = System.Xml.Xsl.Xslt.XsltInput.ContextInfo; +using XPathQilFactory = System.Xml.Xsl.XPath.XPathQilFactory; namespace System.Xml.Xsl.Xslt { - using ContextInfo = XsltInput.ContextInfo; - using XPathQilFactory = System.Xml.Xsl.XPath.XPathQilFactory; - // Set of classes that represent XSLT AST // XSLT AST is a tree of nodes that represent content of xsl template. diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XslAstAnalyzer.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XslAstAnalyzer.cs index 315035919808c..106d7b6e3139b 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XslAstAnalyzer.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XslAstAnalyzer.cs @@ -9,13 +9,12 @@ using System.Xml.Xsl.Qil; using System.Xml.Xsl.Runtime; using System.Xml.Xsl.XPath; +using TypeFactory = System.Xml.Xsl.XmlQueryTypeFactory; +using XPathFunctionInfo = System.Xml.Xsl.XPath.XPathBuilder.FunctionInfo; +using XsltFunctionInfo = System.Xml.Xsl.XPath.XPathBuilder.FunctionInfo; namespace System.Xml.Xsl.Xslt { - using TypeFactory = XmlQueryTypeFactory; - using XPathFunctionInfo = XPathBuilder.FunctionInfo; - using XsltFunctionInfo = XPathBuilder.FunctionInfo; - // ------------------------------- XslAstAnalyzer ------------------------------- internal sealed class XslAstAnalyzer : XslVisitor diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XsltInput.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XsltInput.cs index defdca702a6b0..86b0e8ab18154 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XsltInput.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XsltInput.cs @@ -5,10 +5,10 @@ using System.Collections.Generic; using System.Diagnostics; +using StringConcat = System.Xml.Xsl.Runtime.StringConcat; namespace System.Xml.Xsl.Xslt { - using StringConcat = System.Xml.Xsl.Runtime.StringConcat; // a) Forward only, one pass. // b) You should call MoveToFirstChildren on nonempty element node. (or may be skip) diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XsltLoader.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XsltLoader.cs index 8e08d9551ae77..b0036803e3aca 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XsltLoader.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XsltLoader.cs @@ -12,15 +12,14 @@ using System.IO; using System.Xml.XPath; using System.Xml.Xsl.Qil; +using ContextInfo = System.Xml.Xsl.Xslt.XsltInput.ContextInfo; +using F = System.Xml.Xsl.Xslt.AstFactory; +using TypeFactory = System.Xml.Xsl.XmlQueryTypeFactory; +using QName = System.Xml.Xsl.Xslt.XsltInput.DelayedQName; +using XsltAttribute = System.Xml.Xsl.Xslt.XsltInput.XsltAttribute; namespace System.Xml.Xsl.Xslt { - using ContextInfo = XsltInput.ContextInfo; - using F = AstFactory; - using TypeFactory = XmlQueryTypeFactory; - using QName = XsltInput.DelayedQName; - using XsltAttribute = XsltInput.XsltAttribute; - internal sealed class XsltLoader : IErrorHelper { private Compiler _compiler = null!; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XsltQilFactory.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XsltQilFactory.cs index 670bac0d06b7f..0c9a5843607f8 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XsltQilFactory.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/Xslt/XsltQilFactory.cs @@ -7,11 +7,10 @@ using System.Xml.Xsl.Qil; using System.Xml.Xsl.Runtime; using System.Xml.Xsl.XPath; +using T = System.Xml.Xsl.XmlQueryTypeFactory; namespace System.Xml.Xsl.Xslt { - using T = XmlQueryTypeFactory; - internal sealed class XsltQilFactory : XPathQilFactory { public XsltQilFactory(QilFactory f, bool debug) : base(f, debug) { } diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ActionFrame.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ActionFrame.cs index 3ebd89409062f..739fb2a369004 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ActionFrame.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ActionFrame.cs @@ -1,16 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Xml; +using System.Xml.XPath; +using MS.Internal.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System.Collections; - using System.Collections.Generic; - using System.Diagnostics; - using System.Diagnostics.CodeAnalysis; - using System.Xml; - using System.Xml.XPath; - using MS.Internal.Xml.XPath; - internal sealed class ActionFrame { private int _state; // Action execution state diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ApplyImportsAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ApplyImportsAction.cs index 515b63db4db93..b20c7f6c5d73c 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ApplyImportsAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ApplyImportsAction.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal sealed class ApplyImportsAction : CompiledAction { private XmlQualifiedName? _mode; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ApplyTemplatesAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ApplyTemplatesAction.cs index ae688ba0e2977..b90a567228511 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ApplyTemplatesAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ApplyTemplatesAction.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Collections; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Collections; - using System.Xml; - using System.Xml.XPath; - internal sealed class ApplyTemplatesAction : ContainerAction { private const int ProcessedChildren = 2; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/AttributeAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/AttributeAction.cs index 762ec8d1d3f4a..41fec1df934db 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/AttributeAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/AttributeAction.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal sealed class AttributeAction : ContainerAction { private const int NameDone = 2; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/AttributeSetAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/AttributeSetAction.cs index 00d2fde1a646f..e21fe1f595f55 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/AttributeSetAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/AttributeSetAction.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; +using System.Collections; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - using System.Collections; - internal sealed class AttributeSetAction : ContainerAction { internal XmlQualifiedName? name; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/Avt.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/Avt.cs index fc78f2af4a37f..b17bb90fd914f 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/Avt.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/Avt.cs @@ -1,16 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Collections; +using System.Xml; +using System.Xml.XPath; +using System.Text; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Collections; - using System.Xml; - using System.Xml.XPath; - using System.Text; - using System.Diagnostics.CodeAnalysis; - internal sealed class Avt { private readonly string? _constAvt; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/AvtEvent.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/AvtEvent.cs index d2475c3c07da9..e082dd954afa3 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/AvtEvent.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/AvtEvent.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; +using System.Text; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - using System.Text; - internal sealed class AvtEvent : TextEvent { private readonly int _key; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/BeginEvent.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/BeginEvent.cs index 1c1f3b88a7b1c..48495fc018735 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/BeginEvent.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/BeginEvent.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal sealed class BeginEvent : Event { private readonly XPathNodeType _nodeType; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/BuilderInfo.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/BuilderInfo.cs index 3f531acd48aab..6b09baf8c7331 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/BuilderInfo.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/BuilderInfo.cs @@ -1,16 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Text; +using System.Collections.Generic; +using System.Xml; +using System.Xml.XPath; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Text; - using System.Collections.Generic; - using System.Xml; - using System.Xml.XPath; - using System.Diagnostics.CodeAnalysis; - internal sealed class BuilderInfo { private string? _name; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CallTemplateAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CallTemplateAction.cs index 25f2def000727..1433b6af2e92c 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CallTemplateAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CallTemplateAction.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal sealed class CallTemplateAction : ContainerAction { private const int ProcessedChildren = 2; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ChooseAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ChooseAction.cs index 3dce8434b944e..bfc73ceca874e 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ChooseAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ChooseAction.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal sealed class ChooseAction : ContainerAction { internal override void Compile(Compiler compiler) diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CommentAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CommentAction.cs index 3b166171bc556..af1171b5b9d2f 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CommentAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CommentAction.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal sealed class CommentAction : ContainerAction { internal override void Compile(Compiler compiler) diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CompiledAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CompiledAction.cs index e84929703ea88..6759b8fc7de03 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CompiledAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CompiledAction.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal abstract class CompiledAction : Action { internal abstract void Compile(Compiler compiler); diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ContainerAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ContainerAction.cs index d311e7bb8991c..14c86eed70165 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ContainerAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ContainerAction.cs @@ -1,20 +1,20 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Text; +using System.Globalization; +using System.Xml; +using System.Xml.XPath; +using System.Xml.Xsl.Runtime; +using MS.Internal.Xml.XPath; +using System.Collections; +using System.Runtime.Versioning; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Text; - using System.Globalization; - using System.Xml; - using System.Xml.XPath; - using System.Xml.Xsl.Runtime; - using MS.Internal.Xml.XPath; - using System.Collections; - using System.Runtime.Versioning; - using System.Diagnostics.CodeAnalysis; - internal sealed class NamespaceInfo { internal string? prefix; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CopyAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CopyAction.cs index b6bacb959ba64..5714c09a7310c 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CopyAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CopyAction.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; +using MS.Internal.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - using MS.Internal.Xml.XPath; - internal sealed class CopyAction : ContainerAction { // Local execution states diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CopyAttributesAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CopyAttributesAction.cs index 4868b2c20c111..3114fdbef3426 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CopyAttributesAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CopyAttributesAction.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal sealed class CopyAttributesAction : Action { private const int BeginEvent = 2; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CopyCodeAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CopyCodeAction.cs index 83e63af5e4b83..7be9536942543 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CopyCodeAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CopyCodeAction.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; +using System.Collections; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - using System.Collections; - internal sealed class CopyCodeAction : Action { // Execution states: diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CopyNodeSetAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CopyNodeSetAction.cs index b7f3df9edcc2c..89c6b945bd090 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CopyNodeSetAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CopyNodeSetAction.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal sealed class CopyNodeSetAction : Action { private const int BeginEvent = 2; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CopyOfAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CopyOfAction.cs index 1752f23df04f6..ca8cc75c6a9fe 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CopyOfAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/CopyOfAction.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; +using MS.Internal.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - using MS.Internal.Xml.XPath; - internal sealed class CopyOfAction : CompiledAction { private const int ResultStored = 2; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/DocumentScope.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/DocumentScope.cs index 77a971882770b..f9309f3248d5b 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/DocumentScope.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/DocumentScope.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal class DocumentScope { protected NamespaceDecl? scopes; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ElementAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ElementAction.cs index cae11865dedd9..6cbb62a79499b 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ElementAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ElementAction.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal sealed class ElementAction : ContainerAction { private const int NameDone = 2; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/EndEvent.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/EndEvent.cs index 753787a893d0e..1965a02cf850f 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/EndEvent.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/EndEvent.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal sealed class EndEvent : Event { private readonly XPathNodeType _nodeType; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/Event.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/Event.cs index 541e64662b7ea..7ae283548a4b4 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/Event.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/Event.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; +using System.Xml.Xsl.XsltOld.Debugger; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - using System.Xml.Xsl.XsltOld.Debugger; - internal abstract class Event { public virtual void ReplaceNamespaceAlias(Compiler compiler) { } diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ForEachAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ForEachAction.cs index 45c2bb98f9534..de35b025c0db5 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ForEachAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ForEachAction.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Collections; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Collections; - using System.Xml; - using System.Xml.XPath; - internal sealed class ForEachAction : ContainerAction { private const int ProcessedSort = 2; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/HtmlProps.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/HtmlProps.cs index eb507621140bc..e97594fbed719 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/HtmlProps.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/HtmlProps.cs @@ -1,15 +1,15 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Collections; +using System.Collections.Specialized; +using System.Diagnostics; +using System.Xml; +using System.Globalization; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Collections; - using System.Collections.Specialized; - using System.Diagnostics; - using System.Xml; - using System.Globalization; - internal sealed class HtmlElementProps { private bool _empty; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/IfAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/IfAction.cs index 4d96487965dc1..3e31ad9897891 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/IfAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/IfAction.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal sealed class IfAction : ContainerAction { internal enum ConditionType diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/InputScope.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/InputScope.cs index 82e95b719de6e..93e73c08adba1 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/InputScope.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/InputScope.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; +using System.Collections; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - using System.Collections; - internal sealed class InputScope : DocumentScope { private InputScope? _parent; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/InputScopeManager.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/InputScopeManager.cs index 5d2e8988b4e32..ebeaaa30b3ab8 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/InputScopeManager.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/InputScopeManager.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal sealed class InputScopeManager { private InputScope? _scopeStack; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/MessageAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/MessageAction.cs index c46ed94629bb1..37d9874e431bc 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/MessageAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/MessageAction.cs @@ -1,15 +1,15 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.IO; +using System.Globalization; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.IO; - using System.Globalization; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal sealed class MessageAction : ContainerAction { private bool _Terminate; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/NameSpaceEvent.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/NameSpaceEvent.cs index 32c5d8090b54d..32a4b6c01ddac 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/NameSpaceEvent.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/NameSpaceEvent.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal sealed class NamespaceEvent : Event { private string _namespaceUri; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/NamespaceDecl.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/NamespaceDecl.cs index a4601f1aa1438..c392f33ca30a4 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/NamespaceDecl.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/NamespaceDecl.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics.CodeAnalysis; +using System.Xml; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics.CodeAnalysis; - using System.Xml; - internal sealed class NamespaceDecl { private string _prefix; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/NavigatorInput.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/NavigatorInput.cs index 4c23f1755ce65..157c5eedcac17 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/NavigatorInput.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/NavigatorInput.cs @@ -1,15 +1,15 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Xml; +using System.Xml.XPath; +using KeywordsTable = System.Xml.Xsl.Xslt.KeywordsTable; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Diagnostics.CodeAnalysis; - using System.Xml; - using System.Xml.XPath; - using KeywordsTable = System.Xml.Xsl.Xslt.KeywordsTable; - internal sealed class NavigatorInput { private XPathNavigator? _Navigator; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/OutKeywords.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/OutKeywords.cs index 7abb4d093cd51..0090db2ae1de4 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/OutKeywords.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/OutKeywords.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - internal sealed class OutKeywords { #if DEBUG diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/OutputScope.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/OutputScope.cs index 9f8f3d8d3c1f8..dad69c6b698f5 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/OutputScope.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/OutputScope.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Xml; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Diagnostics.CodeAnalysis; - using System.Xml; - internal sealed class OutputScope : DocumentScope { private string _name; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/OutputScopeManager.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/OutputScopeManager.cs index 4a3dd2419d2a8..dee5ea2129aa2 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/OutputScopeManager.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/OutputScopeManager.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Globalization; +using System.Diagnostics; +using System.Xml; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Globalization; - using System.Diagnostics; - using System.Xml; - internal sealed class OutputScopeManager { private const int STACK_INCREMENT = 10; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/PrefixQName.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/PrefixQName.cs index e5dfaecce9595..0d23b4f0a6d3b 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/PrefixQName.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/PrefixQName.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Xml; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Diagnostics.CodeAnalysis; - using System.Xml; - internal sealed class PrefixQName { public string? Prefix; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ProcessingInstructionAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ProcessingInstructionAction.cs index 2ecf568943a51..5ce5c7cbb1558 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ProcessingInstructionAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ProcessingInstructionAction.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal sealed class ProcessingInstructionAction : ContainerAction { private const int NameReady = 3; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/Processor.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/Processor.cs index d6e1167a0b6b4..8ddf0565a4324 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/Processor.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/Processor.cs @@ -1,20 +1,20 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.IO; +using System.Reflection; +using System.Text; +using System.Xml.XPath; +using System.Xml.Xsl.XsltOld.Debugger; +using MS.Internal.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System.Collections; - using System.Collections.Generic; - using System.Diagnostics; - using System.Diagnostics.CodeAnalysis; - using System.Globalization; - using System.IO; - using System.Reflection; - using System.Text; - using System.Xml.XPath; - using System.Xml.Xsl.XsltOld.Debugger; - using MS.Internal.Xml.XPath; - internal sealed class Processor : IXsltProcessor { // diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/RootAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/RootAction.cs index b9355a83e2fd9..cb5ffc7e80496 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/RootAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/RootAction.cs @@ -1,19 +1,19 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Xml; +using System.Xml.XPath; +using System.Xml.Xsl.Runtime; +using MS.Internal.Xml.XPath; +using System.Security; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Collections; - using System.Collections.Generic; - using System.Globalization; - using System.Xml; - using System.Xml.XPath; - using System.Xml.Xsl.Runtime; - using MS.Internal.Xml.XPath; - using System.Security; - internal sealed class Key { private readonly XmlQualifiedName _name; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/SortAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/SortAction.cs index 3f46193a3074e..0e51622fd8472 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/SortAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/SortAction.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Globalization; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Globalization; - using System.Xml; - using System.Xml.XPath; - internal sealed class SortAction : CompiledAction { private int _selectKey = Compiler.InvalidQueryKey; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/StateMachine.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/StateMachine.cs index 9b1d337da6624..dcd0023e288bc 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/StateMachine.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/StateMachine.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal sealed class StateMachine { // Constants for the state table diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/StringOutput.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/StringOutput.cs index d5af900e9cb4c..de452b13100b5 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/StringOutput.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/StringOutput.cs @@ -1,12 +1,12 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Xml; +using System.Text; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Xml; - using System.Text; - internal sealed class StringOutput : SequentialOutput { private readonly StringBuilder _builder; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/Stylesheet.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/Stylesheet.cs index 18ce1a7600fce..4c064835a4454 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/Stylesheet.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/Stylesheet.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; +using System.Collections; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - using System.Collections; - internal sealed class Stylesheet { private readonly ArrayList _imports = new ArrayList(); diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TemplateAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TemplateAction.cs index 3ba77996ce3d6..04d36ab6f4ed7 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TemplateAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TemplateAction.cs @@ -1,16 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Collections; +using System.Xml; +using System.Xml.XPath; +using MS.Internal.Xml.XPath; +using System.Globalization; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Collections; - using System.Xml; - using System.Xml.XPath; - using MS.Internal.Xml.XPath; - using System.Globalization; - internal sealed class TemplateAction : TemplateBaseAction { private int _matchKey = Compiler.InvalidQueryKey; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TemplateBaseAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TemplateBaseAction.cs index 20035ea3538e3..7384ce5c5a0eb 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TemplateBaseAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TemplateBaseAction.cs @@ -1,15 +1,15 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Collections; +using System.Xml; +using System.Xml.XPath; +using System.Globalization; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Collections; - using System.Xml; - using System.Xml.XPath; - using System.Globalization; - // RootAction and TemplateActions have a litle in common -- they are responsible for variable allocation // TemplateBaseAction -- implenemts this shared behavior diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TemplateLookupAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TemplateLookupAction.cs index b048549b4fe94..fed4d7a63eb27 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TemplateLookupAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TemplateLookupAction.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Diagnostics.CodeAnalysis; - using System.Xml; - using System.Xml.XPath; - internal class TemplateLookupAction : Action { protected XmlQualifiedName? mode; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TemplateManager.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TemplateManager.cs index da0553266686f..609d790d75ed7 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TemplateManager.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TemplateManager.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; +using System.Collections; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - using System.Collections; - internal sealed class TemplateManager { private readonly XmlQualifiedName _mode; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TextAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TextAction.cs index c0671b593e8b7..b3cb040066001 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TextAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TextAction.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal sealed class TextAction : CompiledAction { private bool _disableOutputEscaping; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TextEvent.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TextEvent.cs index dc8ed73b13a21..a43c8f0383521 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TextEvent.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TextEvent.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal class TextEvent : Event { private readonly string _text = null!; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TextOutput.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TextOutput.cs index 40d9da3fda726..cf50313c88a34 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TextOutput.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TextOutput.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.IO; +using System.Xml; +using System.Xml.XPath; +using System.Text; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.IO; - using System.Xml; - using System.Xml.XPath; - using System.Text; - internal sealed class TextOutput : SequentialOutput { private TextWriter _writer; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TheQuery.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TheQuery.cs index a494005561aa3..c1b7e44ff6166 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TheQuery.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/TheQuery.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Xml; +using System.Xml.XPath; +using MS.Internal.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Xml; - using System.Xml.XPath; - using MS.Internal.Xml.XPath; - internal sealed class TheQuery { internal InputScopeManager _ScopeManager; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/UseAttributeSetsAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/UseAttributeSetsAction.cs index 048d53cd6e1cb..19e45819aafb5 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/UseAttributeSetsAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/UseAttributeSetsAction.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; +using System.Collections; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - using System.Collections; - internal sealed class UseAttributeSetsAction : CompiledAction { private XmlQualifiedName[]? _useAttributeSets; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ValueOfAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ValueOfAction.cs index 2c58a09c8ffb4..6c3f6b700a597 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ValueOfAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/ValueOfAction.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal sealed class ValueOfAction : CompiledAction { private const int ResultStored = 2; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/WithParamAction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/WithParamAction.cs index bba6daa695c3f..7e5b659b4d9a2 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/WithParamAction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/WithParamAction.cs @@ -1,14 +1,14 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Collections; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Collections; - using System.Xml; - using System.Xml.XPath; - internal sealed class WithParamAction : VariableAction { internal WithParamAction() : base(VariableType.WithParameter) { } diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/XsltCompileContext.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/XsltCompileContext.cs index 1d97be00d4028..3b44d1f4c313e 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/XsltCompileContext.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/XsltCompileContext.cs @@ -1,20 +1,20 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Diagnostics; +using System.IO; +using System.Globalization; +using System.Collections; +using System.Xml.XPath; +using System.Xml.Xsl.Runtime; +using MS.Internal.Xml.XPath; +using System.Reflection; +using System.Security; +using System.Runtime.Versioning; +using System.Diagnostics.CodeAnalysis; + namespace System.Xml.Xsl.XsltOld { - using System.Diagnostics; - using System.IO; - using System.Globalization; - using System.Collections; - using System.Xml.XPath; - using System.Xml.Xsl.Runtime; - using MS.Internal.Xml.XPath; - using System.Reflection; - using System.Security; - using System.Runtime.Versioning; - using System.Diagnostics.CodeAnalysis; - internal sealed class XsltCompileContext : XsltContext { private InputScopeManager? _manager; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/XsltDebugger.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/XsltDebugger.cs index 94907517f4459..82947e4cbd81d 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/XsltDebugger.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/XsltDebugger.cs @@ -1,10 +1,10 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld.Debugger { - using System.Xml.XPath; - internal interface IXsltProcessor { } diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/XsltOutput.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/XsltOutput.cs index d90674571eb42..6c68964f29a2c 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/XsltOutput.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/XsltOutput.cs @@ -1,15 +1,15 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.IO; +using System.Xml; +using System.Text; +using System.Collections; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.IO; - using System.Xml; - using System.Text; - using System.Collections; - internal sealed class XsltOutput : CompiledAction { internal enum OutputMethod diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/newinstructionaction.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/newinstructionaction.cs index 09126318b46c2..8d2a7cc2225eb 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/newinstructionaction.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xsl/XsltOld/newinstructionaction.cs @@ -1,13 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Diagnostics; +using System.Xml; +using System.Xml.XPath; + namespace System.Xml.Xsl.XsltOld { - using System; - using System.Diagnostics; - using System.Xml; - using System.Xml.XPath; - internal sealed class NewInstructionAction : ContainerAction { private string? _name; diff --git a/src/libraries/System.Private.Xml/src/System/Xml/Xslt/XslTransform.cs b/src/libraries/System.Private.Xml/src/System/Xml/Xslt/XslTransform.cs index a474d6239402c..afbfb2ccbe774 100644 --- a/src/libraries/System.Private.Xml/src/System/Xml/Xslt/XslTransform.cs +++ b/src/libraries/System.Private.Xml/src/System/Xml/Xslt/XslTransform.cs @@ -1,16 +1,16 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.IO; +using System.Xml.XPath; +using System.Xml.Xsl.XsltOld; +using System.Xml.Xsl.XsltOld.Debugger; + namespace System.Xml.Xsl { - using System.Collections.Generic; - using System.Diagnostics; - using System.Diagnostics.CodeAnalysis; - using System.IO; - using System.Xml.XPath; - using System.Xml.Xsl.XsltOld; - using System.Xml.Xsl.XsltOld.Debugger; - public sealed class XslTransform { private XmlResolver? _documentResolver; diff --git a/src/libraries/System.Reflection.MetadataLoadContext/src/System/Reflection/TypeLoading/General/AssemblyNameData.cs b/src/libraries/System.Reflection.MetadataLoadContext/src/System/Reflection/TypeLoading/General/AssemblyNameData.cs index 5f605050c9b84..05af457f5be65 100644 --- a/src/libraries/System.Reflection.MetadataLoadContext/src/System/Reflection/TypeLoading/General/AssemblyNameData.cs +++ b/src/libraries/System.Reflection.MetadataLoadContext/src/System/Reflection/TypeLoading/General/AssemblyNameData.cs @@ -1,10 +1,13 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. + namespace System.Reflection.TypeLoading { +#pragma warning disable IDE0065 // This disambiguating "using" must be inside the "namespace" or else we'll pick up the wrong AssemblyHashAlgorithm. using AssemblyHashAlgorithm = global::System.Configuration.Assemblies.AssemblyHashAlgorithm; +#pragma warning restore IDE0065 // // Collects together everything needed to generate an AssemblyName quickly. We don't want to do all the metadata analysis every time diff --git a/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/ECDsaCng.Key.cs b/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/ECDsaCng.Key.cs index baa804096c1e1..7c441dcf9f32f 100644 --- a/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/ECDsaCng.Key.cs +++ b/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/ECDsaCng.Key.cs @@ -1,11 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Diagnostics; +using Microsoft.Win32.SafeHandles; + namespace System.Security.Cryptography { - using Microsoft.Win32.SafeHandles; - using System.Diagnostics; - public sealed partial class ECDsaCng : ECDsa { /// diff --git a/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/OpenSslCertificateAssetDownloader.cs b/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/OpenSslCertificateAssetDownloader.cs index 5d87d20b40f5b..87ccab4924bca 100644 --- a/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/OpenSslCertificateAssetDownloader.cs +++ b/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/OpenSslCertificateAssetDownloader.cs @@ -7,6 +7,7 @@ using System.Reflection; using System.Threading; using Microsoft.Win32.SafeHandles; +using OpenSslX509ChainEventSource = System.Security.Cryptography.X509Certificates.OpenSslX509ChainEventSource; namespace System.Security.Cryptography.X509Certificates { @@ -118,8 +119,6 @@ internal static class OpenSslCertificateAssetDownloader namespace System.Net.Http { - using OpenSslX509ChainEventSource = System.Security.Cryptography.X509Certificates.OpenSslX509ChainEventSource; - internal partial class X509ResourceClient { static partial void ReportNoClient()