diff --git a/snippets/csharp/System.Diagnostics/ProcessStartInfo/Verb/source.cs b/snippets/csharp/System.Diagnostics/ProcessStartInfo/Verb/source.cs
index 4b6b2123da0..251f200293e 100644
--- a/snippets/csharp/System.Diagnostics/ProcessStartInfo/Verb/source.cs
+++ b/snippets/csharp/System.Diagnostics/ProcessStartInfo/Verb/source.cs
@@ -1,5 +1,4 @@
//
-//
using System;
using System.ComponentModel;
using System.IO;
@@ -49,14 +48,13 @@ static void Main()
startInfo.Verb = verbToUse;
if (verbToUse.ToLower().IndexOf("printto") >= 0)
{
- // printto implies a specific printer. Ask for the network address.
+ // printto implies a specific printer. Ask for the network address.
// The address must be in the form \\server\printer.
// The printer address is passed as the Arguments property.
Console.Write("Enter the network address of the target printer: ");
var arguments = Console.ReadLine();
startInfo.Arguments = arguments;
}
- //
try
{
@@ -81,6 +79,7 @@ static void Main()
Console.WriteLine($"Unable to start '{fileName}' with verb {verbToUse}");
}
}
+ //
}
else
{
@@ -90,5 +89,4 @@ static void Main()
}
}
}
-//
//
diff --git a/xml/Microsoft.CSharp/CSharpCodeProvider.xml b/xml/Microsoft.CSharp/CSharpCodeProvider.xml
index 1eb58ea98ee..15cc64b5be6 100644
--- a/xml/Microsoft.CSharp/CSharpCodeProvider.xml
+++ b/xml/Microsoft.CSharp/CSharpCodeProvider.xml
@@ -32,22 +32,24 @@
Provides access to instances of the C# code generator and code compiler.
- and implementations.
-
+ and implementations.
+
> [!NOTE]
-> This class contains a link demand and an inheritance demand at the class level that applies to all members. A is thrown when either the immediate caller or the derived class does not have full-trust permission.
-
-
-
-## Examples
- The following example uses either the C# or Visual Basic code provider to compile a source file. The example checks the input file extension and uses the corresponding or for compilation. The input file is compiled into an executable file, and any compilation errors are displayed to the console.
-
+> This class contains a link demand and an inheritance demand at the class level that applies to all members. A is thrown when either the immediate caller or the derived class does not have full-trust permission.
+
+## Examples
+ The following example uses either the C# or Visual Basic code provider to compile a source file. The example checks the input file extension and uses the corresponding or for compilation. The input file is compiled into an executable file, and any compilation errors are displayed to the console.
+
+> [!IMPORTANT]
+> The `CompileAssemblyFrom*` methods aren't supported on .NET Core and .NET 5+. This example only runs on .NET Framework.
+
:::code language="csharp" source="~/snippets/csharp/Microsoft.CSharp/CSharpCodeProvider/Overview/source.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CodeProviders/VB/source.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CodeProviders/VB/source.vb" id="Snippet1":::
+
]]>
@@ -124,40 +126,40 @@
A object that contains the provider options.
Initializes a new instance of the class by using the specified provider options.
- ](/dotnet/framework/configure-apps/file-schema/compiler/provideroption-element) element in the configuration file. You can identify the version of the you want to use by specifying the `` element, supplying "CompilerVersion" as the option name, and supplying the version number (for example, "v3.5") as the option value. You must precede the version number with a lower case "v". The following configuration file example demonstrates how to specify that version 3.5 of the C# code provider should be used.
-
-```xml
-
-
-
-
-
-
-
-
-
-
-```
+In .NET Framework apps, you can obtain the value for `providerOptions` from the [\](/dotnet/framework/configure-apps/file-schema/compiler/provideroption-element) element in the configuration file. You can identify the version of the you want to use by specifying the `` element, supplying "CompilerVersion" as the option name, and supplying the version number (for example, "v3.5") as the option value. You must precede the version number with a lower case "v". The following configuration file example demonstrates how to specify that version 3.5 of the C# code provider should be used.
+
+```xml
+
+
+
+
+
+
+
+
+
+
+```
## Examples
- The following example shows how to specify the compiler version when you create a new instance of the class.
-
- :::code language="csharp" source="~/snippets/csharp/Microsoft.CSharp/CSharpCodeProvider/.ctor/program.cs" id="Snippet1":::
-
+ The following example shows how to specify the compiler version when you create a new instance of the class.
+
+ :::code language="csharp" source="~/snippets/csharp/Microsoft.CSharp/CSharpCodeProvider/.ctor/program.cs" id="Snippet1":::
+
]]>
@@ -291,11 +293,11 @@ In .NET Framework apps, you can obtain the value for `providerOptions` from the
Gets the file name extension to use when creating source code files.The file name extension to use for generated source code files.
-
@@ -337,19 +339,19 @@ In .NET Framework apps, you can obtain the value for `providerOptions` from the
The to use when generating the code.
Generates code for the specified class member using the specified text writer and code generator options.
- method to create a code fragment to be used in a CodeDOM graph. This code example is part of a larger example provided for the method of the class.
-
+ method to create a code fragment to be used in a CodeDOM graph. This code example is part of a larger example provided for the method of the class.
+
:::code language="csharp" source="~/snippets/csharp/Microsoft.CSharp/CSharpCodeProvider/GenerateCodeFromMember/program.cs" id="Snippet3":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_GenerateCodeFromMember/vb/module1.vb" id="Snippet3":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_GenerateCodeFromMember/vb/module1.vb" id="Snippet3":::
+
]]>
@@ -392,11 +394,11 @@ In .NET Framework apps, you can obtain the value for `providerOptions` from the
Gets a for the specified type of object.A for the specified type.
-
diff --git a/xml/Microsoft.Extensions.Caching.Memory/MemoryCacheOptions.xml b/xml/Microsoft.Extensions.Caching.Memory/MemoryCacheOptions.xml
index 49f21066301..e99fc147659 100644
--- a/xml/Microsoft.Extensions.Caching.Memory/MemoryCacheOptions.xml
+++ b/xml/Microsoft.Extensions.Caching.Memory/MemoryCacheOptions.xml
@@ -210,9 +210,9 @@
Gets or sets the maximum size of the cache.To be added.
- [!CAUTION]
-> There may be transient states while the cache is full but blocks are being released on a background thread. In this state, unexpected behavior might occur if the cache is being overutilized.
+ [!CAUTION]
+> There might be transient states while the cache is full but blocks are being released on a background thread. In this state, unexpected behavior might occur if the cache is being overutilized.
]]>
@@ -238,12 +238,12 @@
if linked entries are tracked; otherwise, . The default is in .NET 7 and later versions.
-
diff --git a/xml/System.CodeDom.Compiler/CodeDomProvider.xml b/xml/System.CodeDom.Compiler/CodeDomProvider.xml
index aad6663a6d1..f3fc7f66d2a 100644
--- a/xml/System.CodeDom.Compiler/CodeDomProvider.xml
+++ b/xml/System.CodeDom.Compiler/CodeDomProvider.xml
@@ -43,34 +43,34 @@
Provides a base class for implementations. This class is abstract.
- can be used to create and retrieve instances of code generators and code compilers. Code generators can be used to generate code in a particular language, and code compilers can be used to compile code into assemblies.
-
+ can be used to create and retrieve instances of code generators and code compilers. Code generators can be used to generate code in a particular language, and code compilers can be used to compile code into assemblies.
+
> [!NOTE]
-> In the .NET Framework 2.0, the methods made available in the code generator and code compiler are available directly from the code provider. You do not need to call or to access the methods, and those methods are marked as obsolete. This applies to preexisting as well as new code provider implementations.
-
- A implementation typically provides code generation and/or code compilation interfaces for generating code and managing compilation for a single programming language. Several languages are supported by implementations that ship with the Windows SDK. These languages include C#, Visual Basic, C++, and JScript. Developers or compiler vendors can implement the and interfaces and provide a that extends CodeDOM support to other programming languages.
-
- The [<system.codedom> Element](/dotnet/framework/configure-apps/file-schema/compiler/system-codedom-element) in the machine configuration file (Machine.config) provides a mechanism for developers and compiler vendors to add configuration settings for additional implementations.
-
- The class provides static methods to discover and enumerate the implementations on a computer. The method returns the settings for all implementations on a computer. The method returns the settings for a specific implementation, based on the programming language name. The method returns an instance of a implementation for a specific language.
-
- For more details on language provider settings in the configuration file, see [Compiler and Language Provider Settings Schema](/dotnet/framework/configure-apps/file-schema/compiler/).
-
+> In the .NET Framework 2.0, the methods made available in the code generator and code compiler are available directly from the code provider. You do not need to call or to access the methods, and those methods are marked as obsolete. This applies to preexisting as well as new code provider implementations.
+
+ A implementation typically provides code generation and/or code compilation interfaces for generating code and managing compilation for a single programming language. Several languages are supported by implementations that ship with the Windows SDK. These languages include C#, Visual Basic, C++, and JScript. Developers or compiler vendors can implement the and interfaces and provide a that extends CodeDOM support to other programming languages.
+
+ The [<system.codedom> Element](/dotnet/framework/configure-apps/file-schema/compiler/system-codedom-element) in the machine configuration file (Machine.config) provides a mechanism for developers and compiler vendors to add configuration settings for additional implementations.
+
+ The class provides static methods to discover and enumerate the implementations on a computer. The method returns the settings for all implementations on a computer. The method returns the settings for a specific implementation, based on the programming language name. The method returns an instance of a implementation for a specific language.
+
+ For more details on language provider settings in the configuration file, see [Compiler and Language Provider Settings Schema](/dotnet/framework/configure-apps/file-schema/compiler/).
+
> [!NOTE]
-> This class makes a link demand and an inheritance demand at the class level. A is thrown if either the immediate caller or the derived class does not have full trust permission. For details about security demands, see [Link Demands](/dotnet/framework/misc/link-demands) and [Inheritance Demands](https://learn.microsoft.com/previous-versions/dotnet/netframework-4.0/x4yx82e6(v=vs.100)).
-
-
-
-## Examples
- The following example program can generate and compile source code based on a CodeDOM model of a program that prints "Hello World" using the class. A Windows Forms user interface is provided. The user can select the target programming language from several selections: C#, Visual Basic, and JScript.
-
+> This class makes a link demand and an inheritance demand at the class level. A is thrown if either the immediate caller or the derived class does not have full trust permission. For details about security demands, see [Link Demands](/dotnet/framework/misc/link-demands) and [Inheritance Demands](https://learn.microsoft.com/previous-versions/dotnet/netframework-4.0/x4yx82e6(v=vs.100)).
+
+
+
+## Examples
+ The following example program can generate and compile source code based on a CodeDOM model of a program that prints "Hello World" using the class. A Windows Forms user interface is provided. The user can select the target programming language from several selections: C#, Visual Basic, and JScript.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/CodeDomExample/CPP/source.cpp" id="Snippet1":::
:::code language="csharp" source="~/snippets/csharp/System.CodeDom/CodeCompileUnit/Overview/source.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDomExample/VB/source.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDomExample/VB/source.vb" id="Snippet1":::
+
]]>
@@ -161,16 +161,16 @@
Compiles an assembly based on the trees contained in the specified array of objects, using the specified compiler settings.A object that indicates the results of the compilation.
- [!NOTE]
-> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
+ [!NOTE]
+## Remarks
+
+> [!IMPORTANT]
> On .NET Core and .NET 5+, calls to the `CodeDomProvider.CompileAssemblyFromDom` method throw a . Compile code is not supported.
-
+
+> [!NOTE]
+> In .NET Framework 2.0 and later versions, this method can be called directly on the code provider even if it's not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
+
]]>Neither this method nor the method is overridden in a derived class.
@@ -226,16 +226,16 @@
Compiles an assembly from the source code contained in the specified files, using the specified compiler settings.A object that indicates the results of compilation.
- [!NOTE]
-> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
+ [!NOTE]
+## Remarks
+
+> [!IMPORTANT]
> On .NET Core and .NET 5+, calls to the `CodeDomProvider.CompileAssemblyFromFile` method throw a . Compile from file is not supported.
+> [!NOTE]
+> In .NET Framework 2.0 and later versions, this method can be called directly on the code provider even if it's not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
+
]]>Neither this method nor the method is overridden in a derived class.
@@ -290,16 +290,16 @@
Compiles an assembly from the specified array of strings containing source code, using the specified compiler settings.A object that indicates the results of compilation.
- [!NOTE]
-> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
+ [!NOTE]
+## Remarks
+
+> [!IMPORTANT]
> On .NET Core and .NET 5+, calls to the `CodeDomProvider.CompileAssemblyFromSource` method throw a . Compile source code is not supported.
+> [!NOTE]
+> In .NET Framework 2.0 and later versions, this method can be called directly on the code provider even if it's not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
+
]]>Neither this method nor the method is overridden in a derived class.
@@ -353,11 +353,11 @@
When overridden in a derived class, creates a new code compiler.An that can be used for compilation of based source code representations.
- methods that are directly available in the code provider.
-
+ methods that are directly available in the code provider.
+
]]>
@@ -399,14 +399,14 @@
Creates an escaped identifier for the specified value.The escaped identifier for the value.
- tests whether the identifier conflicts with any reserved or language keywords, and if so, returns an equivalent name with language-specific escape code formatting. This is referred to an escaped identifier. The escaped identifier contains the same `value` but has escape-code formatting added to differentiate the identifier from the keyword. Two implementation examples are preceding the `value` with "@" or bracketing the `value` with "[" and "]".
-
+ tests whether the identifier conflicts with any reserved or language keywords, and if so, returns an equivalent name with language-specific escape code formatting. This is referred to an escaped identifier. The escaped identifier contains the same `value` but has escape-code formatting added to differentiate the identifier from the keyword. Two implementation examples are preceding the `value` with "@" or bracketing the `value` with "[" and "]".
+
> [!NOTE]
-> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
-
+> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
+
]]>Neither this method nor the method is overridden in a derived class.
@@ -466,11 +466,11 @@
When overridden in a derived class, creates a new code generator.An that can be used to generate based source code representations.
- methods that are directly available in the class.
-
+ methods that are directly available in the class.
+
]]>
@@ -519,14 +519,14 @@
When overridden in a derived class, creates a new code generator using the specified for output.An that can be used to generate based source code representations.
- for output. This method supports more optimized code generation that incrementally updates the source code.
-
+ for output. This method supports more optimized code generation that incrementally updates the source code.
+
> [!NOTE]
-> The base class implementation calls the method, which is obsolete in the .NET Framework 2.0 and results in a if an object is not returned.
-
+> The base class implementation calls the method, which is obsolete in the .NET Framework 2.0 and results in a if an object is not returned.
+
]]>
@@ -573,14 +573,14 @@
When overridden in a derived class, creates a new code generator using the specified file name for output.An that can be used to generate based source code representations.
- [!NOTE]
-> The base class implementation calls the method, which is obsolete in the .NET Framework 2.0 and results in a if an object is not returned.
-
+> The base class implementation calls the method, which is obsolete in the .NET Framework 2.0 and results in a if an object is not returned.
+
]]>
@@ -678,36 +678,36 @@
Gets a instance for the specified language.A CodeDOM provider that is implemented for the specified language name.
- [!NOTE]
-> This method is most commonly used to create an instance of a code provider in an application that may optionally use one of several providers. allows you to specify at run time the code provider you wish to instantiate. If you know at design time which code provider is to be used, you should create an instance of that code provider rather than use the method.
-
- The method returns a instance for a specific language name; it is similar to calling the method with the language provider type. Use when you want to dynamically find a configured provider implementation for a language name.
-
- If more than one provider implementation is configured for the language name, returns a provider instance for the last matching configuration element.
-
- Use the method overload when you want a specific language provider implementation. For example, use the method to get a provider instance that supports the language name `"CSharp"`; use the method overload to get a provider instance specifically for the implementation. Use the method if you have multiple code providers for a language and you desire to instantiate a specific code provider.
-
- The method checks whether at least one provider implementation supports a specific language. You can validate a language name using before passing it to . If you pass an unsupported language name to a is thrown.
-
- The method can be used to determine all implementations on a computer, including additional implementations provided by developers and compiler vendors that are identified in the [<system.codedom> Element](/dotnet/framework/configure-apps/file-schema/compiler/system-codedom-element) in the machine configuration file (Machine.config).
-
- The method returns an instance of a implementation for a specific language.
-
- Language names are case-insensitive.
-
-
-
-## Examples
- The following code example determines the implementation for an input language and displays the configured settings for the language provider. This code example is part of a larger example provided for the class.
-
+> This method is most commonly used to create an instance of a code provider in an application that may optionally use one of several providers. allows you to specify at run time the code provider you wish to instantiate. If you know at design time which code provider is to be used, you should create an instance of that code provider rather than use the method.
+
+ The method returns a instance for a specific language name; it is similar to calling the method with the language provider type. Use when you want to dynamically find a configured provider implementation for a language name.
+
+ If more than one provider implementation is configured for the language name, returns a provider instance for the last matching configuration element.
+
+ Use the method overload when you want a specific language provider implementation. For example, use the method to get a provider instance that supports the language name `"CSharp"`; use the method overload to get a provider instance specifically for the implementation. Use the method if you have multiple code providers for a language and you desire to instantiate a specific code provider.
+
+ The method checks whether at least one provider implementation supports a specific language. You can validate a language name using before passing it to . If you pass an unsupported language name to a is thrown.
+
+ The method can be used to determine all implementations on a computer, including additional implementations provided by developers and compiler vendors that are identified in the [<system.codedom> Element](/dotnet/framework/configure-apps/file-schema/compiler/system-codedom-element) in the machine configuration file (Machine.config).
+
+ The method returns an instance of a implementation for a specific language.
+
+ Language names are case-insensitive.
+
+
+
+## Examples
+ The following code example determines the implementation for an input language and displays the configured settings for the language provider. This code example is part of a larger example provided for the class.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/CodeDom_CompilerInfo/CPP/source.cpp" id="Snippet6":::
:::code language="csharp" source="~/snippets/csharp/System.CodeDom.Compiler/CodeDomProvider/CreateProvider/source.cs" id="Snippet6":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CompilerInfo/VB/source.vb" id="Snippet6":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CompilerInfo/VB/source.vb" id="Snippet6":::
+
]]>The does not have a configured provider on this computer.
@@ -757,25 +757,25 @@
Gets a instance for the specified language and provider options.A CodeDOM provider that is implemented for the specified language name and options.
- [!NOTE]
-> This method is most commonly used to create an instance of a code provider in an application that may optionally use one of several providers. enables you to specify at run time the version of the code provider you want to instantiate. If you know at design time which code provider is to be used, you should create an instance of that code provider instead of using the method.
-
- Use when you want to dynamically find a configured provider implementation for a specific language and options. Language names are case-insensitive. For information about supported provider options, see the specific CodeDOM provider documentation.
-
- For information about validating a provider and calling a provider if more than one provider implementation is configured for the language name, see the Remarks section of the method.
-
-
-
-## Examples
- The following example shows how to create an instance of a provider by using the `providerOptions` parameter.
-
+> This method is most commonly used to create an instance of a code provider in an application that may optionally use one of several providers. enables you to specify at run time the version of the code provider you want to instantiate. If you know at design time which code provider is to be used, you should create an instance of that code provider instead of using the method.
+
+ Use when you want to dynamically find a configured provider implementation for a specific language and options. Language names are case-insensitive. For information about supported provider options, see the specific CodeDOM provider documentation.
+
+ For information about validating a provider and calling a provider if more than one provider implementation is configured for the language name, see the Remarks section of the method.
+
+
+
+## Examples
+ The following example shows how to create an instance of a provider by using the `providerOptions` parameter.
+
:::code language="csharp" source="~/snippets/csharp/System.CodeDom.Compiler/CodeDomProvider/CreateProvider/program.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/codedomprovider.provideroptions/vb/program.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/codedomprovider.provideroptions/vb/program.vb" id="Snippet1":::
+
]]>
@@ -814,14 +814,14 @@
Creates a valid identifier for the specified value.A valid identifier for the specified value.
- tests whether the identifier conflicts with reserved or language keywords, and if so, attempts to return a valid identifier name that does not conflict. Usually the returned identifier is only slightly modified to differentiate the identifier from the keyword; for example, the name might be preceded by the underscore ("_") character.
-
+ tests whether the identifier conflicts with reserved or language keywords, and if so, attempts to return a valid identifier name that does not conflict. Usually the returned identifier is only slightly modified to differentiate the identifier from the keyword; for example, the name might be preceded by the underscore ("_") character.
+
> [!NOTE]
-> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
-
+> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
+
]]>Neither this method nor the method is overridden in a derived class.
@@ -867,20 +867,20 @@
Gets the default file name extension to use for source code files in the current language.A file name extension corresponding to the extension of the source files of the current language. The base implementation always returns .
- . The example displays the provider name, hash code and default file name extension for the new provider instance.
-
+ . The example displays the provider name, hash code and default file name extension for the new provider instance.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/CodeDom_CompilerInfo/CPP/source.cpp" id="Snippet3":::
:::code language="csharp" source="~/snippets/csharp/System.CodeDom.Compiler/CodeDomProvider/CreateProvider/source.cs" id="Snippet3":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CompilerInfo/VB/source.vb" id="Snippet3":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CompilerInfo/VB/source.vb" id="Snippet3":::
+
]]>
@@ -922,22 +922,22 @@
A that indicates the options to use for generating code.
Generates code for the specified Code Document Object Model (CodeDOM) compilation unit and sends it to the specified text writer, using the specified options.
- [!NOTE]
-> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
-
-
-
-## Examples
- The following code example shows the use of the method to generate code for a "Hello World" application from a . This example is part of a larger example provided for the class.
-
+> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
+
+
+
+## Examples
+ The following code example shows the use of the method to generate code for a "Hello World" application from a . This example is part of a larger example provided for the class.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/CodeDomExample/CPP/source.cpp" id="Snippet3":::
:::code language="csharp" source="~/snippets/csharp/System.CodeDom/CodeCompileUnit/Overview/source.cs" id="Snippet3":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDomExample/VB/source.vb" id="Snippet3":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDomExample/VB/source.vb" id="Snippet3":::
+
]]>Neither this method nor the method is overridden in a derived class.
@@ -986,13 +986,13 @@
A that indicates the options to use for generating code.
Generates code for the specified Code Document Object Model (CodeDOM) expression and sends it to the specified text writer, using the specified options.
- [!NOTE]
-> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
-
+> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
+
]]>Neither this method nor the method is overridden in a derived class.
@@ -1041,19 +1041,19 @@
A that indicates the options to use for generating code.
Generates code for the specified Code Document Object Model (CodeDOM) member declaration and sends it to the specified text writer, using the specified options.
- . See for documentation describing an implementation of this method.
-
-
-
-## Examples
- The following code example shows the use of the method as implemented by the and classes.
-
+ . See for documentation describing an implementation of this method.
+
+
+
+## Examples
+ The following code example shows the use of the method as implemented by the and classes.
+
:::code language="csharp" source="~/snippets/csharp/Microsoft.CSharp/CSharpCodeProvider/GenerateCodeFromMember/program.cs" id="Snippet1":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_GenerateCodeFromMember/vb/module1.vb" id="Snippet1":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_GenerateCodeFromMember/vb/module1.vb" id="Snippet1":::
+
]]>This method is not overridden in a derived class.
@@ -1099,13 +1099,13 @@
A that indicates the options to use for generating code.
Generates code for the specified Code Document Object Model (CodeDOM) namespace and sends it to the specified text writer, using the specified options.
- [!NOTE]
-> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
-
+> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
+
]]>Neither this method nor the method is overridden in a derived class.
@@ -1154,13 +1154,13 @@
A that indicates the options to use for generating code.
Generates code for the specified Code Document Object Model (CodeDOM) statement and sends it to the specified text writer, using the specified options.
- [!NOTE]
-> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
-
+> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
+
]]>Neither this method nor the method is overridden in a derived class.
@@ -1209,13 +1209,13 @@
A that indicates the options to use for generating code.
Generates code for the specified Code Document Object Model (CodeDOM) type declaration and sends it to the specified text writer, using the specified options.
- [!NOTE]
-> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
-
+> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
+
]]>Neither this method nor the method is overridden in a derived class.
@@ -1264,23 +1264,23 @@
Returns the language provider and compiler configuration settings for this computer.An array of type representing the settings of all configured implementations.
- method to enumerate the language provider settings on a computer.
-
+ method to enumerate the language provider settings on a computer.
+
> [!NOTE]
-> In the .NET Framework 2.0, the default language providers supplied by the .NET Framework are not specified in the [<system.codedom> Element](/dotnet/framework/configure-apps/file-schema/compiler/system-codedom-element) compiler configuration section and cannot be removed, so this method returns information about the default providers and any specified in the configuration file.
-
-
-
-## Examples
- The following code example enumerates the language providers on the computer and displays the configuration and compiler settings for each language provider. This code example is part of a larger example provided for the class.
-
+> In the .NET Framework 2.0, the default language providers supplied by the .NET Framework are not specified in the [<system.codedom> Element](/dotnet/framework/configure-apps/file-schema/compiler/system-codedom-element) compiler configuration section and cannot be removed, so this method returns information about the default providers and any specified in the configuration file.
+
+
+
+## Examples
+ The following code example enumerates the language providers on the computer and displays the configuration and compiler settings for each language provider. This code example is part of a larger example provided for the class.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/CodeDom_CompilerInfo/CPP/source.cpp" id="Snippet8":::
:::code language="csharp" source="~/snippets/csharp/System.CodeDom.Compiler/CodeDomProvider/CreateProvider/source.cs" id="Snippet8":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CompilerInfo/VB/source.vb" id="Snippet8":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CompilerInfo/VB/source.vb" id="Snippet8":::
+
]]>The caller does not have the required permission.
@@ -1328,26 +1328,26 @@
Returns the language provider and compiler configuration settings for the specified language.A object populated with settings of the configured implementation.
- implementation on the computer. For information about machine configuration files, see the Machine Configuration Files section in [Configuring Apps](/dotnet/framework/configure-apps/). The method searches each provider configuration element for the specified language name. The returned instance contains the configured language provider and compiler settings.
-
- The method checks whether at least one provider implementation supports a specific language. You can validate a language name using before passing it to . This prevents throwing a when you access the instance for an unsupported language name.
-
- If more than one provider implementation is configured for the input language name, returns the settings from the last matching provider configuration element.
-
- Language names are case-insensitive.
-
-
-
-## Examples
- The following code example determines the implementation for an input language and displays the configured settings for the language provider. This code example is part of a larger example provided for the class.
-
+ implementation on the computer. For information about machine configuration files, see the Machine Configuration Files section in [Configuring Apps](/dotnet/framework/configure-apps/). The method searches each provider configuration element for the specified language name. The returned instance contains the configured language provider and compiler settings.
+
+ The method checks whether at least one provider implementation supports a specific language. You can validate a language name using before passing it to . This prevents throwing a when you access the instance for an unsupported language name.
+
+ If more than one provider implementation is configured for the input language name, returns the settings from the last matching provider configuration element.
+
+ Language names are case-insensitive.
+
+
+
+## Examples
+ The following code example determines the implementation for an input language and displays the configured settings for the language provider. This code example is part of a larger example provided for the class.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/CodeDom_CompilerInfo/CPP/source.cpp" id="Snippet6":::
:::code language="csharp" source="~/snippets/csharp/System.CodeDom.Compiler/CodeDomProvider/CreateProvider/source.cs" id="Snippet6":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CompilerInfo/VB/source.vb" id="Snippet6":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CompilerInfo/VB/source.vb" id="Snippet6":::
+
]]>The does not have a configured provider on this computer.
@@ -1393,11 +1393,11 @@
Gets a for the specified data type.A for the specified type, or if a for the specified type cannot be found.
-
@@ -1443,26 +1443,26 @@
Returns a language name associated with the specified file name extension, as configured in the compiler configuration section.A language name associated with the file name extension, as configured in the compiler configuration settings.
- implementation on the computer. The method searches each provider configuration element for the specified file name extension.
-
- The method checks whether at least one provider implementation supports a specific file name extension. You can validate a file name extension using before passing it to . This prevents from throwing a for an unsupported file name extension.
-
- If a provider implementation supports the input file name extension, and there are multiple supported languages configured for that provider, then returns the first language name for that provider. If more than one provider implementation is configured for the input file name extension, returns the language name from the last matching provider configuration element.
-
- Language names and file name extensions are case-insensitive.
-
-
-
-## Examples
- The following code example determines the implementation for an input file name extension and displays the configured settings for the language provider. This code example is part of a larger example provided for the class.
-
+ implementation on the computer. The method searches each provider configuration element for the specified file name extension.
+
+ The method checks whether at least one provider implementation supports a specific file name extension. You can validate a file name extension using before passing it to . This prevents from throwing a for an unsupported file name extension.
+
+ If a provider implementation supports the input file name extension, and there are multiple supported languages configured for that provider, then returns the first language name for that provider. If more than one provider implementation is configured for the input file name extension, returns the language name from the last matching provider configuration element.
+
+ Language names and file name extensions are case-insensitive.
+
+
+
+## Examples
+ The following code example determines the implementation for an input file name extension and displays the configured settings for the language provider. This code example is part of a larger example provided for the class.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/CodeDom_CompilerInfo/CPP/source.cpp" id="Snippet5":::
:::code language="csharp" source="~/snippets/csharp/System.CodeDom.Compiler/CodeDomProvider/CreateProvider/source.cs" id="Snippet5":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CompilerInfo/VB/source.vb" id="Snippet5":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CompilerInfo/VB/source.vb" id="Snippet5":::
+
]]>The does not have a configured language provider on this computer.
@@ -1507,13 +1507,13 @@
Gets the type indicated by the specified .A text representation of the specified type, formatted for the language in which code is generated by this code generator. In Visual Basic, for example, passing in a for the type will return "Integer".
- [!NOTE]
-> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
-
+> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
+
]]>Neither this method nor the method is overridden in a derived class.
@@ -1563,22 +1563,22 @@
if a implementation is configured for the specified file name extension; otherwise, .
- implementation on the computer. The method searches the provider configuration elements for the specified file name extension.
-
- File name extensions are case-insensitive.
-
-
-
-## Examples
- The following code example determines the implementation for an input file name extension and displays the configured settings for the language provider. This code example is part of a larger example provided for the class.
-
+ implementation on the computer. The method searches the provider configuration elements for the specified file name extension.
+
+ File name extensions are case-insensitive.
+
+
+
+## Examples
+ The following code example determines the implementation for an input file name extension and displays the configured settings for the language provider. This code example is part of a larger example provided for the class.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/CodeDom_CompilerInfo/CPP/source.cpp" id="Snippet5":::
:::code language="csharp" source="~/snippets/csharp/System.CodeDom.Compiler/CodeDomProvider/CreateProvider/source.cs" id="Snippet5":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CompilerInfo/VB/source.vb" id="Snippet5":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CompilerInfo/VB/source.vb" id="Snippet5":::
+
]]>The is .
@@ -1629,22 +1629,22 @@
if a implementation is configured for the specified language; otherwise, .
- implementation on the computer. The method searches the provider configuration elements for the specified language name.
-
- Language names are case-insensitive.
-
-
-
-## Examples
- The following code example determines the implementation for an input language and displays the configured settings for the language provider. This code example is part of a larger example provided for the class.
-
+ implementation on the computer. The method searches the provider configuration elements for the specified language name.
+
+ Language names are case-insensitive.
+
+
+
+## Examples
+ The following code example determines the implementation for an input language and displays the configured settings for the language provider. This code example is part of a larger example provided for the class.
+
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR/CodeDom_CompilerInfo/CPP/source.cpp" id="Snippet6":::
:::code language="csharp" source="~/snippets/csharp/System.CodeDom.Compiler/CodeDomProvider/CreateProvider/source.cs" id="Snippet6":::
- :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CompilerInfo/VB/source.vb" id="Snippet6":::
-
+ :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR/CodeDom_CompilerInfo/VB/source.vb" id="Snippet6":::
+
]]>The is .
@@ -1688,20 +1688,20 @@
if the parameter is a valid identifier; otherwise, .
- method is provider specific. Identifiers that are valid for one provider might not be valid for other providers. If `value` contains characters outside of the ASCII character range, check the identifier for all the languages that might be used to compile the code.
-
+ method is provider specific. Identifiers that are valid for one provider might not be valid for other providers. If `value` contains characters outside of the ASCII character range, check the identifier for all the languages that might be used to compile the code.
+
> [!NOTE]
-> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
-
+> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
+
]]>Neither this method nor the method is overridden in a derived class.
- When overriding in a derived class, design the method to return only if the value fits the rules of the language and does not conflict with a keyword.
-
+ When overriding in a derived class, design the method to return only if the value fits the rules of the language and does not conflict with a keyword.
+
If you override this method, you must not call the corresponding method of the base class. The base-class method creates a generator in the derived class using the obsolete method for compatibility with preexisting providers that use code generators. The base-class method then calls the equivalent method in the implementation to perform this function. You will get a if you call the base-class method from a code provider that does not use a code generator.
@@ -1773,13 +1773,13 @@
Compiles the code read from the specified text stream into a .A that contains a representation of the parsed code.
- [!NOTE]
-> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
-
+> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
+
]]>Neither this method nor the method is overridden in a derived class.
@@ -1825,14 +1825,14 @@
if the specified code generation support is provided; otherwise, .
- flags at once to test for a set of capabilities by joining a set of appropriate capability flags together with a binary `OR` operator (|).
-
+ flags at once to test for a set of capabilities by joining a set of appropriate capability flags together with a binary `OR` operator (|).
+
> [!NOTE]
-> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
-
+> In the .NET Framework versions 1.0 and 1.1, this method is provided by the implementation that is returned by the method of the provider. In version 2.0, this method can be called directly on the code provider even if it is not overridden by the code provider. If the code provider does not override this method, the implementation is called by the base class.
+
]]>Neither this method nor the method is overridden in a derived class.
diff --git a/xml/System.Collections/ArrayList.xml b/xml/System.Collections/ArrayList.xml
index a74f71694e2..f4ba76463e6 100644
--- a/xml/System.Collections/ArrayList.xml
+++ b/xml/System.Collections/ArrayList.xml
@@ -115,19 +115,19 @@
## Remarks
> [!IMPORTANT]
-> We don't recommend that you use the `ArrayList` class for new development. Instead, we recommend that you use the generic class.
+> We don't recommend that you use the `ArrayList` class for new development. Instead, we recommend that you use the generic class.
> The class is designed to hold heterogeneous collections of objects. However, it does not always offer the best performance. Instead, we recommend the following:
> - For a heterogeneous collection of objects, use the `List