From 850af143e31b812db8064a8e3dcb2c50e1f351dd Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Mon, 9 Feb 2026 16:46:05 -0800 Subject: [PATCH 1/4] Checkpoint from Copilot CLI for coding agent session --- ...ction-emit-dynamicmethod-createdelegate.md | 53 ++++++++++++ ...stem-reflection-emit-dynamicmethod-ctor.md | 81 +++++++++++++++++++ ...tion-emit-dynamicmethod-defineparameter.md | 20 +++++ ...ction-emit-dynamicmethod-getilgenerator.md | 37 +++++++++ ...em-reflection-emit-dynamicmethod-invoke.md | 31 +++++++ ...n-emit-dynamicmethod-issecuritycritical.md | 41 ++++++++++ ...it-dynamicmethod-issecuritysafecritical.md | 41 ++++++++++ ...mit-dynamicmethod-issecuritytransparent.md | 41 ++++++++++ ...stem-reflection-emit-dynamicmethod-name.md | 19 +++++ 9 files changed, 364 insertions(+) create mode 100644 docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-createdelegate.md create mode 100644 docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-ctor.md create mode 100644 docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-defineparameter.md create mode 100644 docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-getilgenerator.md create mode 100644 docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-invoke.md create mode 100644 docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritycritical.md create mode 100644 docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritysafecritical.md create mode 100644 docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritytransparent.md create mode 100644 docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-name.md diff --git a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-createdelegate.md b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-createdelegate.md new file mode 100644 index 0000000000000..73b97a9bb51db --- /dev/null +++ b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-createdelegate.md @@ -0,0 +1,53 @@ +--- +title: System.Reflection.Emit.DynamicMethod.CreateDelegate methods +description: Learn about the System.Reflection.Emit.DynamicMethod.CreateDelegate methods. +ms.date: 02/10/2026 +ai-usage: ai-assisted +--- +# System.Reflection.Emit.DynamicMethod.CreateDelegate methods + +[!INCLUDE [context](includes/context.md)] + +## + +Calling the method or the method completes the dynamic method. Any further attempt to alter the dynamic method, such as modifying parameter definitions or emitting more Microsoft intermediate language (MSIL), is ignored; no exception is thrown. + +To create a method body for a dynamic method when you have your own MSIL generator, call the method to obtain a object. If you don't have your own MSIL generator, call the method to obtain an object that can be used to generate the method body. + +### Examples + +The following code example creates a dynamic method that takes two parameters. The example emits a simple function body that prints the first parameter to the console, and the example uses the second parameter as the return value of the method. The example completes the method by creating a delegate, invokes the delegate with different parameters, and finally invokes the dynamic method using the method. + +:::code language="csharp" source="~/snippets/csharp/System.Reflection.Emit/DynamicMethod/.ctor/source1.cs" id="Snippet1"::: +:::code language="vb" source="~/snippets/visualbasic/System.Reflection.Emit/DynamicMethod/.ctor/source1.vb" id="Snippet1"::: + +## + +This method overload creates a delegate bound to a particular object. Such a delegate is said to be closed over its first argument. Although the method is static, it acts as if it were an instance method; the instance is `target`. + +This method overload requires `target` to be of the same type as the first parameter of the dynamic method, or to be assignable to that type (for example, a derived class). The signature of `delegateType` has all the parameters of the dynamic method except the first. For example, if the dynamic method has the parameters , , and , then `delegateType` has the parameters and ; `target` is of type . + +Calling the method or the method completes the dynamic method. Any further attempt to alter the dynamic method, such as modifying parameter definitions or emitting more Microsoft intermediate language (MSIL), is ignored; no exception is thrown. + +To create a method body for a dynamic method when you have your own MSIL generator, call the method to obtain a object. If you don't have your own MSIL generator, call the method to obtain an object that can be used to generate the method body. + +### Examples + +The following code example creates a delegate that binds a to an instance of a type, so that the method acts on the same instance each time it's invoked. + +The code example defines a class named `Example` with a private field, a class named `DerivedFromExample` that derives from the first class, a delegate type named `UseLikeStatic` that returns and has parameters of type `Example` and , and a delegate type named `UseLikeInstance` that returns and has one parameter of type . + +The example code then creates a that changes the private field of an instance of `Example` and returns the previous value. + +> [!NOTE] +> In general, changing the internal fields of classes isn't good object-oriented coding practice. + +The example code creates an instance of `Example` and then creates two delegates. The first is of type `UseLikeStatic`, which has the same parameters as the dynamic method. The second is of type `UseLikeInstance`, which lacks the first parameter (of type `Example`). This delegate is created using the method overload; the second parameter of that method overload is an instance of `Example`, in this case the instance just created, which is bound to the newly created delegate. Whenever that delegate is invoked, the dynamic method acts on the bound instance of `Example`. + +> [!NOTE] +> This is an example of the relaxed rules for delegate binding introduced in .NET Framework 2.0, along with new overloads of the method. For more information, see the class. + +The `UseLikeStatic` delegate is invoked, passing in the instance of `Example` that's bound to the `UseLikeInstance` delegate. Then the `UseLikeInstance` delegate is invoked, so that both delegates act on the same instance of `Example`. The changes in the values of the internal field are displayed after each call. Finally, a `UseLikeInstance` delegate is bound to an instance of `DerivedFromExample`, and the delegate calls are repeated. + +:::code language="csharp" source="~/snippets/csharp/System.Reflection.Emit/DynamicMethod/.ctor/source.cs" id="Snippet1"::: +:::code language="vb" source="~/snippets/visualbasic/System.Reflection.Emit/DynamicMethod/.ctor/source.vb" id="Snippet1"::: diff --git a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-ctor.md b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-ctor.md new file mode 100644 index 0000000000000..52d4369258275 --- /dev/null +++ b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-ctor.md @@ -0,0 +1,81 @@ +--- +title: System.Reflection.Emit.DynamicMethod constructors +description: Learn about the System.Reflection.Emit.DynamicMethod constructors. +ms.date: 02/10/2026 +ai-usage: ai-assisted +--- +# System.Reflection.Emit.DynamicMethod constructors + +[!INCLUDE [context](includes/context.md)] + +## constructor + +The dynamic method that is created by this constructor is associated with an anonymous assembly instead of an existing type or module. The anonymous assembly exists only to provide a sandbox environment for dynamic methods, that is, to isolate them from other code. This environment makes it safe for the dynamic method to be emitted and executed by partially trusted code. + +Anonymously hosted dynamic methods don't have automatic access to any types or members that are `private`, `protected`, or `internal` (`Friend` in Visual Basic). This is different from dynamic methods that are associated with an existing type or module, which have access to hidden members in their associated scope. + +Specify `true` for `restrictedSkipVisibility` if your dynamic method has to access types or members that are `private`, `protected`, or `internal`. This gives the dynamic method restricted access to these members. That is, the members can be accessed only if the following conditions are met: + +- The target members belong to an assembly that has a level of trust equal to or lower than the call stack that emits the dynamic method. + +- The call stack that emits the dynamic method is granted with the flag. This is always true when the code is executed with full trust. For partially trusted code, it's true only if the host explicitly grants the permission. + + > [!IMPORTANT] + > If the permission hasn't been granted, a security exception is thrown when is called or when the dynamic method is invoked, not when this constructor is called. No special permissions are required to emit the dynamic method. + +For example, a dynamic method that's created with `restrictedSkipVisibility` set to `true` can access a private member of any assembly on the call stack if the call stack has been granted restricted member access. If the dynamic method is created with partially trusted code on the call stack, it can't access a private member of a type in a .NET Framework assembly, because such assemblies are fully trusted. + +If `restrictedSkipVisibility` is `false`, JIT visibility checks are enforced. The code in the dynamic method has access to public methods of public classes, and exceptions are thrown if it tries to access types or members that are `private`, `protected`, or `internal`. + +When an anonymously hosted dynamic method is constructed, the call stack of the emitting assembly is included. When the method is invoked, the permissions of the emitting call stack are used instead of the permissions of the actual caller. Thus, the dynamic method can't execute at a higher level of privilege than that of the assembly that emitted it, even if it's passed to and executed by an assembly that has a higher trust level. + +This constructor specifies the method attributes and , and the calling convention . + +> [!NOTE] +> This constructor was introduced in .NET Framework 3.5 or later. + +## constructor + +This constructor specifies method attributes and , calling convention , and doesn't skip just-in-time (JIT) visibility checks. + +The dynamic method created with this constructor has access to public and `internal` (`Friend` in Visual Basic) members of all the types contained in module `m`. + +> [!NOTE] +> For backward compatibility, this constructor demands with the flag if the following conditions are both true: `m` is a module other than the calling module, and the demand for with the flag has failed. If the demand for succeeds, the operation is allowed. + +### Examples + +The following code example creates a dynamic method that takes two parameters. The example emits a simple function body that prints the first parameter to the console, and the example uses the second parameter as the return value of the method. The example completes the method by creating a delegate, invokes the delegate with different parameters, and finally invokes the dynamic method using the method. + +:::code language="csharp" source="~/snippets/csharp/System.Reflection.Emit/DynamicMethod/.ctor/source1.cs" id="Snippet1"::: +:::code language="vb" source="~/snippets/visualbasic/System.Reflection.Emit/DynamicMethod/.ctor/source1.vb" id="Snippet1"::: + +## constructor + +The dynamic method created with this constructor has access to all members of the type `owner`, and to public and `internal` (`Friend` in Visual Basic) members of all the other types in the module that contains `owner`. + +This constructor specifies method attributes and , calling convention , and doesn't skip just-in-time (JIT) visibility checks. + +> [!NOTE] +> For backward compatibility, this constructor demands with the flag if the following conditions are both true: `owner` is in a module other than the calling module, and the demand for with the flag has failed. If the demand for succeeds, the operation is allowed. + +### Examples + +The following code example creates a that's logically associated with a type. This association gives it access to the private members of that type. + +The code example defines a class named `Example` with a private field, a class named `DerivedFromExample` that derives from the first class, a delegate type named `UseLikeStatic` that returns and has parameters of type `Example` and , and a delegate type named `UseLikeInstance` that returns and has one parameter of type . + +The example code then creates a that changes the private field of an instance of `Example` and returns the previous value. + +> [!NOTE] +> In general, changing the internal fields of classes isn't good object-oriented coding practice. + +The example code creates an instance of `Example` and then creates two delegates. The first is of type `UseLikeStatic`, which has the same parameters as the dynamic method. The second is of type `UseLikeInstance`, which lacks the first parameter (of type `Example`). This delegate is created using the method overload; the second parameter of that method overload is an instance of `Example`, in this case the instance just created, which is bound to the newly created delegate. Whenever that delegate is invoked, the dynamic method acts on the bound instance of `Example`. + +> [!NOTE] +> This is an example of the relaxed rules for delegate binding introduced in .NET Framework 2.0, along with new overloads of the method. For more information, see the class. + +The `UseLikeStatic` delegate is invoked, passing in the instance of `Example` that's bound to the `UseLikeInstance` delegate. Then the `UseLikeInstance` delegate is invoked, so that both delegates act on the same instance of `Example`. The changes in the values of the internal field are displayed after each call. Finally, a `UseLikeInstance` delegate is bound to an instance of `DerivedFromExample`, and the delegate calls are repeated. + +:::code language="csharp" source="~/snippets/csharp/System.Reflection.Emit/DynamicMethod/.ctor/source.cs" id="Snippet1"::: +:::code language="vb" source="~/snippets/visualbasic/System.Reflection.Emit/DynamicMethod/.ctor/source.vb" id="Snippet1"::: diff --git a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-defineparameter.md b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-defineparameter.md new file mode 100644 index 0000000000000..aa615217e02a8 --- /dev/null +++ b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-defineparameter.md @@ -0,0 +1,20 @@ +--- +title: System.Reflection.Emit.DynamicMethod.DefineParameter method +description: Learn about the System.Reflection.Emit.DynamicMethod.DefineParameter method. +ms.date: 02/10/2026 +ai-usage: ai-assisted +--- +# System.Reflection.Emit.DynamicMethod.DefineParameter method + +[!INCLUDE [context](includes/context.md)] + +If `position` is 0, the method refers to the return value. Setting parameter information has no effect on the return value. + +If the dynamic method has already been completed, by calling the or method, the method has no effect. No exception is thrown. + +## Examples + +The following code example shows how to define parameter information for a dynamic method. This code example is part of a larger example provided for the class. + +:::code language="csharp" source="~/snippets/csharp/System.Reflection.Emit/DynamicMethod/Overview/source.cs" id="Snippet33"::: +:::code language="vb" source="~/snippets/visualbasic/System.Reflection.Emit/DynamicMethod/Overview/source.vb" id="Snippet33"::: diff --git a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-getilgenerator.md b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-getilgenerator.md new file mode 100644 index 0000000000000..cd3f38a6b613e --- /dev/null +++ b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-getilgenerator.md @@ -0,0 +1,37 @@ +--- +title: System.Reflection.Emit.DynamicMethod.GetILGenerator methods +description: Learn about the System.Reflection.Emit.DynamicMethod.GetILGenerator methods. +ms.date: 02/10/2026 +ai-usage: ai-assisted +--- +# System.Reflection.Emit.DynamicMethod.GetILGenerator methods + +[!INCLUDE [context](includes/context.md)] + +## + +After a dynamic method has been completed, by calling the or method, any further attempt to add MSIL is ignored. No exception is thrown. + +> [!NOTE] +> There are restrictions on unverifiable code in dynamic methods, even in some full-trust scenarios. See the "Verification" section in Remarks for . + +### Examples + +The following code example creates a dynamic method that takes two parameters. The example emits a simple function body that prints the first parameter to the console, and the example uses the second parameter as the return value of the method. The example completes the method by creating a delegate, invokes the delegate with different parameters, and finally invokes the dynamic method using the method. + +:::code language="csharp" source="~/snippets/csharp/System.Reflection.Emit/DynamicMethod/.ctor/source1.cs" id="Snippet1"::: +:::code language="vb" source="~/snippets/visualbasic/System.Reflection.Emit/DynamicMethod/.ctor/source1.vb" id="Snippet1"::: + +## + +After a dynamic method has been completed, by calling the or method, any further attempt to add MSIL is ignored. No exception is thrown. + +> [!NOTE] +> There are restrictions on unverifiable code in dynamic methods, even in some full-trust scenarios. See the "Verification" section in Remarks for . + +### Examples + +The following code example demonstrates this method overload. This code example is part of a larger example provided for the class. + +:::code language="csharp" source="~/snippets/csharp/System.Reflection.Emit/DynamicMethod/Overview/source.cs" id="Snippet2"::: +:::code language="vb" source="~/snippets/visualbasic/System.Reflection.Emit/DynamicMethod/Overview/source.vb" id="Snippet2"::: diff --git a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-invoke.md b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-invoke.md new file mode 100644 index 0000000000000..9202c64d1c51a --- /dev/null +++ b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-invoke.md @@ -0,0 +1,31 @@ +--- +title: System.Reflection.Emit.DynamicMethod.Invoke method +description: Learn about the System.Reflection.Emit.DynamicMethod.Invoke method. +ms.date: 02/10/2026 +ai-usage: ai-assisted +--- +# System.Reflection.Emit.DynamicMethod.Invoke method + +[!INCLUDE [context](includes/context.md)] + +In addition to the listed exceptions, the calling code should be prepared to catch any exceptions thrown by the dynamic method. + +Executing a dynamic method with a delegate created by the method is more efficient than executing it with the method. + +Calling the method or the method completes the dynamic method. Any further attempt to alter the dynamic method, such as modifying parameter definitions or emitting more Microsoft intermediate language (MSIL), is ignored; no exception is thrown. + +All dynamic methods are static, so the `obj` parameter is always ignored. To treat a dynamic method as if it were an instance method, use the overload that takes an object instance. + +If the dynamic method has no parameters, the value of `parameters` should be `null`. Otherwise the number, type, and order of elements in the parameters array should be identical to the number, type, and order of parameters of the dynamic method. + +> [!NOTE] +> This method overload is called by the method overload inherited from the class, so the preceding remarks apply to both overloads. + +This method doesn't demand permissions directly, but invoking the dynamic method can result in security demands, depending on the method. For example, no demands are made for anonymously hosted dynamic methods that are created with the `restrictedSkipVisibility` parameter set to `false`. On the other hand, if you create a method with `restrictedSkipVisibility` set to `true` so it can access a hidden member of a target assembly, the method causes a demand for the permissions of the target assembly plus with the flag. + +## Examples + +The following code example invokes a dynamic method with exact binding, using the US-English culture. This code example is part of a larger example provided for the class. + +:::code language="csharp" source="~/snippets/csharp/System.Reflection.Emit/DynamicMethod/Overview/source.cs" id="Snippet4"::: +:::code language="vb" source="~/snippets/visualbasic/System.Reflection.Emit/DynamicMethod/Overview/source.vb" id="Snippet4"::: diff --git a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritycritical.md b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritycritical.md new file mode 100644 index 0000000000000..6bae05b6ff73d --- /dev/null +++ b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritycritical.md @@ -0,0 +1,41 @@ +--- +title: System.Reflection.Emit.DynamicMethod.IsSecurityCritical property +description: Learn about the System.Reflection.Emit.DynamicMethod.IsSecurityCritical property. +ms.date: 02/10/2026 +ai-usage: ai-assisted +--- +# System.Reflection.Emit.DynamicMethod.IsSecurityCritical property + +[!INCLUDE [context](includes/context.md)] + +The , , and properties report the transparency level of the dynamic method as determined by the common language runtime (CLR). The combinations of these properties are shown in the following table: + +| Security level | IsSecurityCritical | IsSecuritySafeCritical | IsSecurityTransparent | +|----------------|--------------------|-----------------------|-----------------------| +| Critical | `true` | `false` | `false` | +| Safe critical | `true` | `true` | `false` | +| Transparent | `false` | `false` | `true` | + +Using these properties is much simpler than examining the security annotations of an assembly and its types, checking the current trust level, and attempting to duplicate the runtime's rules. + +The transparency of a dynamic method depends on the module it's associated with. If the dynamic method is associated with a type rather than a module, its transparency depends on the module that contains the type. Dynamic methods don't have security annotations, so they're assigned the default transparency for the associated module. + +- Anonymously hosted dynamic methods are always transparent, because the system-provided module that contains them is transparent. + +- The transparency of a dynamic method that's associated with a trusted assembly (that is, a strong-named assembly that's installed in the global assembly cache) is described in the following table. + + | Assembly annotation | Level 1 transparency | Level 2 transparency | + |---------------------|----------------------|----------------------| + | Fully transparent | Transparent | Transparent | + | Fully critical | Critical | Critical | + | Mixed transparency | Transparent | Transparent | + | Security-agnostic | Safe-critical | Critical | + + For example, if you associate a dynamic method with a type that's in mscorlib.dll, which has level 2 mixed transparency, the dynamic method is transparent and can't execute critical code. For information about transparency levels, see [Security-Transparent Code, Level 1](/dotnet/framework/misc/security-transparent-code-level-1) and [Security-Transparent Code, Level 2](/dotnet/framework/misc/security-transparent-code-level-2). + + > [!NOTE] + > Associating a dynamic method with a module in a trusted level 1 assembly that's security-agnostic, such as System.dll, doesn't permit elevation of trust. If the grant set of the code that calls the dynamic method doesn't include the grant set of System.dll (that is, full trust), is thrown when the dynamic method is called. + +- The transparency of a dynamic method that's associated with a partially trusted assembly depends on how the assembly is loaded. If the assembly is loaded with partial trust (for example, into a sandboxed application domain), the runtime ignores the security annotations of the assembly. The assembly and all its types and members, including dynamic methods, are treated as transparent. The runtime pays attention to security annotations only if the partial-trust assembly is loaded with full trust (for example, into the default application domain of a desktop application). In that case, the runtime assigns the dynamic method the default transparency for methods according to the assembly's annotations. + +For more information about reflection emit and transparency, see [Security Issues in Reflection Emit](/dotnet/framework/reflection-and-codedom/security-issues-in-reflection-emit). For information about transparency, see [Security Changes](/dotnet/framework/security/security-changes). diff --git a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritysafecritical.md b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritysafecritical.md new file mode 100644 index 0000000000000..31e9004707e43 --- /dev/null +++ b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritysafecritical.md @@ -0,0 +1,41 @@ +--- +title: System.Reflection.Emit.DynamicMethod.IsSecuritySafeCritical property +description: Learn about the System.Reflection.Emit.DynamicMethod.IsSecuritySafeCritical property. +ms.date: 02/10/2026 +ai-usage: ai-assisted +--- +# System.Reflection.Emit.DynamicMethod.IsSecuritySafeCritical property + +[!INCLUDE [context](includes/context.md)] + +The , , and properties report the transparency level of the dynamic method as determined by the common language runtime (CLR). The combinations of these properties are shown in the following table: + +| Security level | IsSecurityCritical | IsSecuritySafeCritical | IsSecurityTransparent | +|----------------|--------------------|-----------------------|-----------------------| +| Critical | `true` | `false` | `false` | +| Safe critical | `true` | `true` | `false` | +| Transparent | `false` | `false` | `true` | + +Using these properties is much simpler than examining the security annotations of an assembly and its types, checking the current trust level, and attempting to duplicate the runtime's rules. + +The transparency of a dynamic method depends on the module it's associated with. If the dynamic method is associated with a type rather than a module, its transparency depends on the module that contains the type. Dynamic methods don't have security annotations, so they're assigned the default transparency for the associated module. + +- Anonymously hosted dynamic methods are always transparent, because the system-provided module that contains them is transparent. + +- The transparency of a dynamic method that's associated with a trusted assembly (that is, a strong-named assembly that's installed in the global assembly cache) is described in the following table. + + | Assembly annotation | Level 1 transparency | Level 2 transparency | + |---------------------|----------------------|----------------------| + | Fully transparent | Transparent | Transparent | + | Fully critical | Critical | Critical | + | Mixed transparency | Transparent | Transparent | + | Security-agnostic | Safe-critical | Critical | + + For example, if you associate a dynamic method with a type that's in mscorlib.dll, which has level 2 mixed transparency, the dynamic method is transparent and can't execute critical code. For information about transparency levels, see [Security-Transparent Code, Level 1](/dotnet/framework/misc/security-transparent-code-level-1) and [Security-Transparent Code, Level 2](/dotnet/framework/misc/security-transparent-code-level-2). + + > [!NOTE] + > Associating a dynamic method with a module in a trusted level 1 assembly that's security-agnostic, such as System.dll, doesn't permit elevation of trust. If the grant set of the code that calls the dynamic method doesn't include the grant set of System.dll (that is, full trust), is thrown when the dynamic method is called. + +- The transparency of a dynamic method that's associated with a partially trusted assembly depends on how the assembly is loaded. If the assembly is loaded with partial trust (for example, into a sandboxed application domain), the runtime ignores the security annotations of the assembly. The assembly and all its types and members, including dynamic methods, are treated as transparent. The runtime pays attention to security annotations only if the partial-trust assembly is loaded with full trust (for example, into the default application domain of a desktop application). In that case, the runtime assigns the dynamic method the default transparency for methods according to the assembly's annotations. + +For more information about reflection emit and transparency, see [Security Issues in Reflection Emit](/dotnet/framework/reflection-and-codedom/security-issues-in-reflection-emit). For information about transparency, see [Security Changes](/dotnet/framework/security/security-changes). diff --git a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritytransparent.md b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritytransparent.md new file mode 100644 index 0000000000000..cf20060f09d53 --- /dev/null +++ b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritytransparent.md @@ -0,0 +1,41 @@ +--- +title: System.Reflection.Emit.DynamicMethod.IsSecurityTransparent property +description: Learn about the System.Reflection.Emit.DynamicMethod.IsSecurityTransparent property. +ms.date: 02/10/2026 +ai-usage: ai-assisted +--- +# System.Reflection.Emit.DynamicMethod.IsSecurityTransparent property + +[!INCLUDE [context](includes/context.md)] + +The , , and properties report the transparency level of the dynamic method as determined by the common language runtime (CLR). The combinations of these properties are shown in the following table: + +| Security level | IsSecurityCritical | IsSecuritySafeCritical | IsSecurityTransparent | +|----------------|--------------------|-----------------------|-----------------------| +| Critical | `true` | `false` | `false` | +| Safe critical | `true` | `true` | `false` | +| Transparent | `false` | `false` | `true` | + +Using these properties is much simpler than examining the security annotations of an assembly and its types, checking the current trust level, and attempting to duplicate the runtime's rules. + +The transparency of a dynamic method depends on the module it's associated with. If the dynamic method is associated with a type rather than a module, its transparency depends on the module that contains the type. Dynamic methods don't have security annotations, so they're assigned the default transparency for the associated module. + +- Anonymously hosted dynamic methods are always transparent, because the system-provided module that contains them is transparent. + +- The transparency of a dynamic method that's associated with a trusted assembly (that is, a strong-named assembly that's installed in the global assembly cache) is described in the following table. + + | Assembly annotation | Level 1 transparency | Level 2 transparency | + |---------------------|----------------------|----------------------| + | Fully transparent | Transparent | Transparent | + | Fully critical | Critical | Critical | + | Mixed transparency | Transparent | Transparent | + | Security-agnostic | Safe-critical | Critical | + + For example, if you associate a dynamic method with a type that's in mscorlib.dll, which has level 2 mixed transparency, the dynamic method is transparent and can't execute critical code. For information about transparency levels, see [Security-Transparent Code, Level 1](/dotnet/framework/misc/security-transparent-code-level-1) and [Security-Transparent Code, Level 2](/dotnet/framework/misc/security-transparent-code-level-2). + + > [!NOTE] + > Associating a dynamic method with a module in a trusted level 1 assembly that's security-agnostic, such as System.dll, doesn't permit elevation of trust. If the grant set of the code that calls the dynamic method doesn't include the grant set of System.dll (that is, full trust), is thrown when the dynamic method is called. + +- The transparency of a dynamic method that's associated with a partially trusted assembly depends on how the assembly is loaded. If the assembly is loaded with partial trust (for example, into a sandboxed application domain), the runtime ignores the security annotations of the assembly. The assembly and all its types and members, including dynamic methods, are treated as transparent. The runtime pays attention to security annotations only if the partial-trust assembly is loaded with full trust (for example, into the default application domain of a desktop application). In that case, the runtime assigns the dynamic method the default transparency for methods according to the assembly's annotations. + +For more information about reflection emit and transparency, see [Security Issues in Reflection Emit](/dotnet/framework/reflection-and-codedom/security-issues-in-reflection-emit). For information about transparency, see [Security Changes](/dotnet/framework/security/security-changes). diff --git a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-name.md b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-name.md new file mode 100644 index 0000000000000..9846db7c93c33 --- /dev/null +++ b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-name.md @@ -0,0 +1,19 @@ +--- +title: System.Reflection.Emit.DynamicMethod.Name property +description: Learn about the System.Reflection.Emit.DynamicMethod.Name property. +ms.date: 02/10/2026 +ai-usage: ai-assisted +--- +# System.Reflection.Emit.DynamicMethod.Name property + +[!INCLUDE [context](includes/context.md)] + +> [!NOTE] +> It's not necessary to name dynamic methods. + +## Examples + +The following code example displays the name of a dynamic method. This code example is part of a larger example provided for the class. + +:::code language="csharp" source="~/snippets/csharp/System.Reflection.Emit/DynamicMethod/Overview/source.cs" id="Snippet27"::: +:::code language="vb" source="~/snippets/visualbasic/System.Reflection.Emit/DynamicMethod/Overview/source.vb" id="Snippet27"::: From b40ea5959bdcbf53a17d3a6e7be8b029a9594790 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Mon, 9 Feb 2026 17:46:09 -0800 Subject: [PATCH 2/4] target .net 10 --- .../System.Collections.Generic/List/Overview/vb/Project.vbproj | 2 +- .../ListT/Overview/csharp/Project.csproj | 2 +- .../snippets/System.Data/DataTable/Overview/vb/Project.vbproj | 2 +- .../EventSource/Overview/csharp/Project.csproj | 2 +- .../EventSource/Overview/vb/Project.vbproj | 2 +- .../CounterCreationData/Overview/csharp/Project.csproj | 2 +- .../PerformanceCounter/NextValue/csharp/Project.csproj | 2 +- .../PerformanceCounterType/Overview/csharp/Project.csproj | 2 +- .../PerformanceCounterType/Overview/vb/Project.vbproj | 2 +- .../System.Dynamic/ExpandoObject/Overview/csharp/Project.csproj | 2 +- .../System.Dynamic/ExpandoObject/Overview/vb/Project.vbproj | 2 +- .../CultureInfo/CurrentCulture/csharp/Project.csproj | 2 +- .../CultureInfo/CurrentCulture/vb/Project.vbproj | 2 +- .../CultureInfo/CurrentUICulture/csharp/Project.csproj | 2 +- .../CultureInfo/CurrentUICulture/vb/Project.vbproj | 2 +- .../CultureInfo/InvariantCulture/csharp/Project.csproj | 2 +- .../CultureInfo/InvariantCulture/vb/Project.vbproj | 2 +- .../System.Numerics/BigInteger/Overview/csharp/Project.csproj | 2 +- .../System.Numerics/BigInteger/Overview/vb/Project.vbproj | 2 +- .../PersistedAssemblyBuilder/Overview/csharp/Project.csproj | 2 +- .../System.Resources/CurrentCulture/Overview/vb/Project.vbproj | 2 +- .../Overview/csharp/Project.csproj | 2 +- .../MissingManifestResourceException/Overview/vb/Project.vbproj | 2 +- .../Overview/csharp/Project.csproj | 2 +- .../Overview/vb/Project.vbproj | 2 +- .../ResourceManager/.ctor/csharp/Project.csproj | 2 +- .../System.Resources/ResourceManager/.ctor/vb/Project.vbproj | 2 +- .../ResourceManager/GetString/vb/Project.vbproj | 2 +- .../System.Resources/ResourceManager/Overview/vb/Project.vbproj | 2 +- .../ResourceReader/Overview/csharp/Project.csproj | 2 +- .../System.Resources/ResourceReader/Overview/vb/Project.vbproj | 2 +- .../InternalsVisibleToAttribute/Overview/csharp/Project.csproj | 2 +- .../InternalsVisibleToAttribute/Overview/vb/Project.vbproj | 2 +- .../RuntimeHelpers/GetHashCode/csharp/Project.csproj | 2 +- .../RuntimeHelpers/GetHashCode/vb/Project.vbproj | 2 +- .../ICustomMarshaler/Overview/csharp/Project.csproj | 2 +- .../ICustomMarshaler/Overview/vb/Project.vbproj | 2 +- .../ComponentGuaranteesAttribute/Overview/csharp/Project.csproj | 2 +- .../ComponentGuaranteesAttribute/Overview/vb/Project.vbproj | 2 +- .../Regex/Match/csharp/Project.csproj | 2 +- .../Regex/Overview/csharp/Project.csproj | 2 +- .../Regex/Overview/vb/Project.vbproj | 2 +- .../System.Text/Encoding/Overview/csharp/Project.csproj | 2 +- .../snippets/System.Text/Encoding/Overview/vb/Project.vbproj | 2 +- .../System.Text/RegularExpressions/Overview/vb/Project.vbproj | 2 +- .../snippets/System.Text/Rune/Overview/csharp/Project.csproj | 2 +- .../System.Text/StringBuilder/Overview/csharp/Project.csproj | 2 +- .../System.Text/StringBuilder/Overview/vb/Project.vbproj | 2 +- .../System.Threading.Tasks/Task/Overview/csharp/Project.csproj | 2 +- .../System.Threading.Tasks/Task/Overview/vb/Project.vbproj | 2 +- .../System.Threading/Monitor/Overview/csharp/Project.csproj | 2 +- .../System.Threading/Monitor/Overview/vb/Project.vbproj | 2 +- .../ReaderWriterLockSlim/Overview/csharp/Project.csproj | 2 +- .../ReaderWriterLockSlim/Overview/vb/Project.vbproj | 2 +- .../System.Threading/Thread/Overview/csharp/Project.csproj | 2 +- .../snippets/System.Threading/Thread/Overview/vb/Project.vbproj | 2 +- .../System.Xml/XmlParserContext/Overview/csharp/Project.csproj | 2 +- .../snippets/System.Xml/XmlReader/Create/csharp/Project.csproj | 2 +- .../snippets/System.Xml/XmlReader/Create/vb/Project.vbproj | 2 +- .../System.Xml/XmlReader/Overview/csharp/Project.csproj | 2 +- .../snippets/System.Xml/XmlReader/Overview/vb/Project.vbproj | 2 +- .../XmlReaderSettings/ValidationType/csharp/Project.csproj | 2 +- .../System.Xml/XmlResolver/Overview/csharp/Project.csproj | 2 +- .../snippets/System.Xml/XmlResolver/Overview/vb/Project.vbproj | 2 +- .../System.Xml/XmlWriter/Overview/csharp/Project.csproj | 2 +- .../snippets/System.Xml/XmlWriter/Overview/vb/Project.vbproj | 2 +- .../System/AppContext/Overview/csharp/V1/Project.csproj | 2 +- .../System/AppContext/Overview/csharp/V2/Project.csproj | 2 +- .../System/AppContext/Overview/csharp/V3/Project.csproj | 2 +- .../snippets/System/AppContext/Overview/vb/V1/Project.vbproj | 2 +- .../snippets/System/AppContext/Overview/vb/V2/Project.vbproj | 2 +- .../snippets/System/AppContext/Overview/vb/V3/Project.vbproj | 2 +- .../snippets/System/Boolean/Overview/csharp/Project.csproj | 2 +- .../snippets/System/Boolean/Overview/vb/Project.vbproj | 2 +- .../snippets/System/Byte/Overview/csharp/Project.csproj | 2 +- .../snippets/System/Byte/Overview/vb/Project.vbproj | 2 +- .../snippets/System/Char/Overview/csharp/Project.csproj | 2 +- .../snippets/System/Char/Overview/vb/Project.vbproj | 2 +- .../snippets/System/Console/Overview/csharp/Project.csproj | 2 +- .../snippets/System/Console/Overview/vb/Project.vbproj | 2 +- .../snippets/System/Convert/Overview/csharp/Project.csproj | 2 +- .../snippets/System/Convert/Overview/vb/Project.vbproj | 2 +- .../snippets/System/Convert/ToInt32/csharp/Project.csproj | 2 +- .../snippets/System/Convert/ToInt64/csharp/Project.csproj | 2 +- .../snippets/System/DateTime/FromBinary/csharp/Project.csproj | 2 +- .../snippets/System/DateTime/FromBinary/vb/Project.vbproj | 2 +- .../snippets/System/DateTime/Overview/csharp/Project.csproj | 2 +- .../snippets/System/DateTime/Overview/vb/Project.vbproj | 2 +- .../snippets/System/Decimal/Overview/csharp/Project.csproj | 2 +- .../snippets/System/Decimal/Overview/vb/Project.vbproj | 2 +- .../System/Delegate/CreateDelegate/csharp/Project.csproj | 2 +- .../snippets/System/Delegate/CreateDelegate/vb/Project.vbproj | 2 +- .../snippets/System/Double/CompareTo/csharp/Project.csproj | 2 +- .../snippets/System/Double/CompareTo/vb/Project.vbproj | 2 +- .../snippets/System/Double/Epsilon/csharp/Project.csproj | 2 +- .../snippets/System/Double/Epsilon/vb/Project.vbproj | 2 +- .../snippets/System/Double/Equals/csharp/Project.csproj | 2 +- .../snippets/System/Double/Equals/vb/Project.vbproj | 2 +- .../snippets/System/Double/Overview/vb/Project.vbproj | 2 +- .../snippets/System/Enum/Overview/csharp/Project.csproj | 2 +- .../snippets/System/Enum/Overview/vb/Project.vbproj | 2 +- .../snippets/System/Exception/HelpLink/csharp/Project.csproj | 2 +- .../snippets/System/Exception/HelpLink/vb/Project.vbproj | 2 +- .../snippets/System/Exception/Overview/vb/Project.vbproj | 2 +- .../System/FlagsAttribute/Overview/csharp/Project.csproj | 2 +- .../snippets/System/FlagsAttribute/Overview/vb/Project.vbproj | 2 +- .../System/FormatException/Overview/csharp/Project.csproj | 2 +- .../snippets/System/IDisposable/Overview/csharp/Project.csproj | 2 +- .../snippets/System/IDisposable/Overview/vb/Project.vbproj | 2 +- .../snippets/System/Int32/Overview/csharp/Project.csproj | 2 +- .../snippets/System/Int32/Overview/vb/Project.vbproj | 2 +- .../snippets/System/Int64/Overview/csharp/Project.csproj | 2 +- .../snippets/System/Int64/Overview/vb/Project.vbproj | 2 +- .../System/InvalidCastException/Overview/vb/Project.vbproj | 2 +- .../InvalidOperationException/Overview/vb/Other/Project.vbproj | 2 +- .../System/NotSupportedException/Overview/vb/Project.vbproj | 2 +- .../snippets/System/Object/Equals/csharp/Project.csproj | 2 +- .../snippets/System/Object/Equals/vb/Project.vbproj | 2 +- .../snippets/System/Object/Finalize/csharp/Project.csproj | 2 +- .../snippets/System/Object/Finalize/vb/Project.vbproj | 2 +- .../snippets/System/Object/GetHashCode/csharp/Project.csproj | 2 +- .../snippets/System/Object/GetHashCode/vb/Project.vbproj | 2 +- .../snippets/System/Object/ToString/csharp/Project.csproj | 2 +- .../snippets/System/Object/ToString/vb/Project.vbproj | 2 +- .../snippets/System/Random/Overview/csharp/Project.csproj | 2 +- .../snippets/System/Random/Overview/vb/Project.vbproj | 2 +- .../snippets/System/Single/CompareTo/csharp/Project.csproj | 2 +- .../snippets/System/Single/CompareTo/vb/Project.vbproj | 2 +- .../snippets/System/Single/Epsilon/csharp/Project.csproj | 2 +- .../snippets/System/Single/Epsilon/vb/Project.vbproj | 2 +- .../snippets/System/Single/Equals/csharp/Project.csproj | 2 +- .../snippets/System/Single/Equals/vb/Project.vbproj | 2 +- .../snippets/System/Single/Overview/csharp/Project.csproj | 2 +- .../snippets/System/Single/Overview/vb/Project.vbproj | 2 +- .../snippets/System/Span/Overview/csharp/Project.csproj | 2 +- .../snippets/System/String/.ctor/csharp/Project.csproj | 2 +- .../snippets/System/String/.ctor/vb/Project.vbproj | 2 +- .../snippets/System/String/Format/csharp/Project.csproj | 2 +- .../snippets/System/String/Format/vb/Project.vbproj | 2 +- .../snippets/System/String/Intern/csharp/Project.csproj | 2 +- .../snippets/System/String/Intern/vb/Project.vbproj | 2 +- .../snippets/System/String/IsNullOrEmpty/csharp/Project.csproj | 2 +- .../snippets/System/String/IsNullOrEmpty/vb/Project.vbproj | 2 +- .../snippets/System/String/Overview/csharp/Project.csproj | 2 +- .../snippets/System/String/Overview/vb/Project.vbproj | 2 +- .../snippets/System/TimeSpan/Parse/csharp/Project.csproj | 2 +- .../snippets/System/TimeSpan/Parse/vb/Project.vbproj | 2 +- .../snippets/System/TimeSpan/TryParse/csharp/Project.csproj | 2 +- .../snippets/System/TimeSpan/TryParse/vb/Project.vbproj | 2 +- .../snippets/System/Type/GetType/csharp/Project.csproj | 2 +- .../snippets/System/Type/MakeGenericType/csharp/Project.csproj | 2 +- .../snippets/System/Type/MakeGenericType/vb/Project.vbproj | 2 +- .../snippets/System/Type/Overview/csharp/Project.csproj | 2 +- .../snippets/System/Type/Overview/vb/Project.vbproj | 2 +- .../TypeInitializationException/Overview/vb/Project.vbproj | 2 +- 155 files changed, 155 insertions(+), 155 deletions(-) diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Collections.Generic/List/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Collections.Generic/List/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Collections.Generic/List/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Collections.Generic/List/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Collections.Generic/ListT/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Collections.Generic/ListT/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Collections.Generic/ListT/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Collections.Generic/ListT/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Data/DataTable/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Data/DataTable/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Data/DataTable/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Data/DataTable/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics.Tracing/EventSource/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics.Tracing/EventSource/Overview/csharp/Project.csproj index 44a42c18ccbab..22dd9034898ba 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics.Tracing/EventSource/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics.Tracing/EventSource/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 true diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics.Tracing/EventSource/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics.Tracing/EventSource/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics.Tracing/EventSource/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics.Tracing/EventSource/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics/CounterCreationData/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics/CounterCreationData/Overview/csharp/Project.csproj index 063382ba8f7e5..2da0e2c488701 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics/CounterCreationData/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics/CounterCreationData/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics/PerformanceCounter/NextValue/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics/PerformanceCounter/NextValue/csharp/Project.csproj index 063382ba8f7e5..2da0e2c488701 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics/PerformanceCounter/NextValue/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics/PerformanceCounter/NextValue/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics/PerformanceCounterType/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics/PerformanceCounterType/Overview/csharp/Project.csproj index 063382ba8f7e5..2da0e2c488701 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics/PerformanceCounterType/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics/PerformanceCounterType/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics/PerformanceCounterType/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics/PerformanceCounterType/Overview/vb/Project.vbproj index 063382ba8f7e5..2da0e2c488701 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics/PerformanceCounterType/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Diagnostics/PerformanceCounterType/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Dynamic/ExpandoObject/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Dynamic/ExpandoObject/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Dynamic/ExpandoObject/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Dynamic/ExpandoObject/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Dynamic/ExpandoObject/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Dynamic/ExpandoObject/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Dynamic/ExpandoObject/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Dynamic/ExpandoObject/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/CurrentCulture/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/CurrentCulture/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/CurrentCulture/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/CurrentCulture/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/CurrentCulture/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/CurrentCulture/vb/Project.vbproj index f2ef551a953f3..f99395b4b2b39 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/CurrentCulture/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/CurrentCulture/vb/Project.vbproj @@ -2,7 +2,7 @@ Exe - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/CurrentUICulture/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/CurrentUICulture/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/CurrentUICulture/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/CurrentUICulture/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/CurrentUICulture/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/CurrentUICulture/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/CurrentUICulture/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/CurrentUICulture/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/InvariantCulture/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/InvariantCulture/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/InvariantCulture/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/InvariantCulture/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/InvariantCulture/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/InvariantCulture/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/InvariantCulture/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Globalization/CultureInfo/InvariantCulture/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Numerics/BigInteger/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Numerics/BigInteger/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Numerics/BigInteger/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Numerics/BigInteger/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Numerics/BigInteger/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Numerics/BigInteger/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Numerics/BigInteger/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Numerics/BigInteger/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Reflection.Emit/PersistedAssemblyBuilder/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Reflection.Emit/PersistedAssemblyBuilder/Overview/csharp/Project.csproj index 50142618ca279..68f3d17454a03 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Reflection.Emit/PersistedAssemblyBuilder/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Reflection.Emit/PersistedAssemblyBuilder/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net9 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Resources/CurrentCulture/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Resources/CurrentCulture/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Resources/CurrentCulture/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Resources/CurrentCulture/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Resources/MissingManifestResourceException/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Resources/MissingManifestResourceException/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Resources/MissingManifestResourceException/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Resources/MissingManifestResourceException/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Resources/MissingManifestResourceException/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Resources/MissingManifestResourceException/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Resources/MissingManifestResourceException/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Resources/MissingManifestResourceException/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Resources/NeutralResourcesLanguageAttribute/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Resources/NeutralResourcesLanguageAttribute/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Resources/NeutralResourcesLanguageAttribute/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Resources/NeutralResourcesLanguageAttribute/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Resources/NeutralResourcesLanguageAttribute/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Resources/NeutralResourcesLanguageAttribute/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Resources/NeutralResourcesLanguageAttribute/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Resources/NeutralResourcesLanguageAttribute/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceManager/.ctor/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceManager/.ctor/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceManager/.ctor/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceManager/.ctor/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceManager/.ctor/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceManager/.ctor/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceManager/.ctor/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceManager/.ctor/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceManager/GetString/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceManager/GetString/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceManager/GetString/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceManager/GetString/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceManager/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceManager/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceManager/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceManager/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceReader/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceReader/Overview/csharp/Project.csproj index a3be3310f7f5d..c3fdf8b0f2976 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceReader/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceReader/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceReader/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceReader/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceReader/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Resources/ResourceReader/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Runtime.CompilerServices/InternalsVisibleToAttribute/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Runtime.CompilerServices/InternalsVisibleToAttribute/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Runtime.CompilerServices/InternalsVisibleToAttribute/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Runtime.CompilerServices/InternalsVisibleToAttribute/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Runtime.CompilerServices/InternalsVisibleToAttribute/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Runtime.CompilerServices/InternalsVisibleToAttribute/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Runtime.CompilerServices/InternalsVisibleToAttribute/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Runtime.CompilerServices/InternalsVisibleToAttribute/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Runtime.CompilerServices/RuntimeHelpers/GetHashCode/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Runtime.CompilerServices/RuntimeHelpers/GetHashCode/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Runtime.CompilerServices/RuntimeHelpers/GetHashCode/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Runtime.CompilerServices/RuntimeHelpers/GetHashCode/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Runtime.CompilerServices/RuntimeHelpers/GetHashCode/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Runtime.CompilerServices/RuntimeHelpers/GetHashCode/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Runtime.CompilerServices/RuntimeHelpers/GetHashCode/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Runtime.CompilerServices/RuntimeHelpers/GetHashCode/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Runtime.InteropServices/ICustomMarshaler/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Runtime.InteropServices/ICustomMarshaler/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Runtime.InteropServices/ICustomMarshaler/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Runtime.InteropServices/ICustomMarshaler/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Runtime.InteropServices/ICustomMarshaler/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Runtime.InteropServices/ICustomMarshaler/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Runtime.InteropServices/ICustomMarshaler/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Runtime.InteropServices/ICustomMarshaler/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Runtime.Versioning/ComponentGuaranteesAttribute/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Runtime.Versioning/ComponentGuaranteesAttribute/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Runtime.Versioning/ComponentGuaranteesAttribute/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Runtime.Versioning/ComponentGuaranteesAttribute/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Runtime.Versioning/ComponentGuaranteesAttribute/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Runtime.Versioning/ComponentGuaranteesAttribute/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Runtime.Versioning/ComponentGuaranteesAttribute/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Runtime.Versioning/ComponentGuaranteesAttribute/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Text.RegularExpressions/Regex/Match/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Text.RegularExpressions/Regex/Match/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Text.RegularExpressions/Regex/Match/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Text.RegularExpressions/Regex/Match/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Text.RegularExpressions/Regex/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Text.RegularExpressions/Regex/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Text.RegularExpressions/Regex/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Text.RegularExpressions/Regex/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Text.RegularExpressions/Regex/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Text.RegularExpressions/Regex/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Text.RegularExpressions/Regex/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Text.RegularExpressions/Regex/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Text/Encoding/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Text/Encoding/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Text/Encoding/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Text/Encoding/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Text/Encoding/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Text/Encoding/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Text/Encoding/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Text/Encoding/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Text/RegularExpressions/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Text/RegularExpressions/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Text/RegularExpressions/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Text/RegularExpressions/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Text/Rune/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Text/Rune/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Text/Rune/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Text/Rune/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Text/StringBuilder/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Text/StringBuilder/Overview/csharp/Project.csproj index 44a42c18ccbab..22dd9034898ba 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Text/StringBuilder/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Text/StringBuilder/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 true diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Text/StringBuilder/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Text/StringBuilder/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Text/StringBuilder/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Text/StringBuilder/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Threading.Tasks/Task/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Threading.Tasks/Task/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Threading.Tasks/Task/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Threading.Tasks/Task/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Threading.Tasks/Task/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Threading.Tasks/Task/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Threading.Tasks/Task/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Threading.Tasks/Task/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Threading/Monitor/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Threading/Monitor/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Threading/Monitor/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Threading/Monitor/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Threading/Monitor/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Threading/Monitor/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Threading/Monitor/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Threading/Monitor/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Threading/ReaderWriterLockSlim/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Threading/ReaderWriterLockSlim/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Threading/ReaderWriterLockSlim/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Threading/ReaderWriterLockSlim/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Threading/ReaderWriterLockSlim/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Threading/ReaderWriterLockSlim/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Threading/ReaderWriterLockSlim/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Threading/ReaderWriterLockSlim/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Threading/Thread/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Threading/Thread/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Threading/Thread/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Threading/Thread/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Threading/Thread/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Threading/Thread/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Threading/Thread/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Threading/Thread/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlParserContext/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlParserContext/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlParserContext/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlParserContext/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlReader/Create/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlReader/Create/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlReader/Create/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlReader/Create/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlReader/Create/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlReader/Create/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlReader/Create/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlReader/Create/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlReader/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlReader/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlReader/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlReader/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlReader/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlReader/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlReader/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlReader/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlReaderSettings/ValidationType/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlReaderSettings/ValidationType/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlReaderSettings/ValidationType/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlReaderSettings/ValidationType/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlResolver/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlResolver/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlResolver/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlResolver/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlResolver/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlResolver/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlResolver/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlResolver/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlWriter/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlWriter/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlWriter/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlWriter/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlWriter/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlWriter/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlWriter/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System.Xml/XmlWriter/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/csharp/V1/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/csharp/V1/Project.csproj index 741e95a0e8331..369b05a893e74 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/csharp/V1/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/csharp/V1/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 false diff --git a/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/csharp/V2/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/csharp/V2/Project.csproj index 741e95a0e8331..369b05a893e74 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/csharp/V2/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/csharp/V2/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 false diff --git a/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/csharp/V3/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/csharp/V3/Project.csproj index 741e95a0e8331..369b05a893e74 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/csharp/V3/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/csharp/V3/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 false diff --git a/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/vb/V1/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/vb/V1/Project.vbproj index 741e95a0e8331..369b05a893e74 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/vb/V1/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/vb/V1/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 false diff --git a/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/vb/V2/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/vb/V2/Project.vbproj index 741e95a0e8331..369b05a893e74 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/vb/V2/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/vb/V2/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 false diff --git a/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/vb/V3/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/vb/V3/Project.vbproj index 741e95a0e8331..369b05a893e74 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/vb/V3/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/AppContext/Overview/vb/V3/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 false diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Boolean/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Boolean/Overview/csharp/Project.csproj index 5f18ee1d873bc..2d9e6c5bd270b 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Boolean/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Boolean/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 true diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Boolean/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Boolean/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Boolean/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Boolean/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Byte/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Byte/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Byte/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Byte/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Byte/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Byte/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Byte/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Byte/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Char/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Char/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Char/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Char/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Char/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Char/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Char/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Char/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Console/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Console/Overview/csharp/Project.csproj index 44a42c18ccbab..22dd9034898ba 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Console/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Console/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 true diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Console/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Console/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Console/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Console/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Convert/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Convert/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Convert/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Convert/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Convert/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Convert/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Convert/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Convert/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Convert/ToInt32/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Convert/ToInt32/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Convert/ToInt32/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Convert/ToInt32/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Convert/ToInt64/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Convert/ToInt64/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Convert/ToInt64/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Convert/ToInt64/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/DateTime/FromBinary/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/DateTime/FromBinary/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/DateTime/FromBinary/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/DateTime/FromBinary/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/DateTime/FromBinary/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/DateTime/FromBinary/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/DateTime/FromBinary/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/DateTime/FromBinary/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/DateTime/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/DateTime/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/DateTime/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/DateTime/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/DateTime/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/DateTime/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/DateTime/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/DateTime/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Decimal/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Decimal/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Decimal/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Decimal/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Decimal/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Decimal/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Decimal/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Decimal/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Delegate/CreateDelegate/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Delegate/CreateDelegate/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Delegate/CreateDelegate/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Delegate/CreateDelegate/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Delegate/CreateDelegate/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Delegate/CreateDelegate/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Delegate/CreateDelegate/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Delegate/CreateDelegate/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Double/CompareTo/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Double/CompareTo/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Double/CompareTo/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Double/CompareTo/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Double/CompareTo/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Double/CompareTo/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Double/CompareTo/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Double/CompareTo/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Double/Epsilon/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Double/Epsilon/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Double/Epsilon/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Double/Epsilon/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Double/Epsilon/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Double/Epsilon/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Double/Epsilon/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Double/Epsilon/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Double/Equals/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Double/Equals/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Double/Equals/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Double/Equals/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Double/Equals/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Double/Equals/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Double/Equals/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Double/Equals/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Double/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Double/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Double/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Double/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Enum/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Enum/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Enum/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Enum/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Enum/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Enum/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Enum/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Enum/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Exception/HelpLink/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Exception/HelpLink/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Exception/HelpLink/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Exception/HelpLink/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Exception/HelpLink/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Exception/HelpLink/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Exception/HelpLink/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Exception/HelpLink/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Exception/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Exception/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Exception/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Exception/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/FlagsAttribute/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/FlagsAttribute/Overview/csharp/Project.csproj index f2ef551a953f3..f99395b4b2b39 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/FlagsAttribute/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/FlagsAttribute/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Exe - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/FlagsAttribute/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/FlagsAttribute/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/FlagsAttribute/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/FlagsAttribute/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/FormatException/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/FormatException/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/FormatException/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/FormatException/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/IDisposable/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/IDisposable/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/IDisposable/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/IDisposable/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/IDisposable/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/IDisposable/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/IDisposable/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/IDisposable/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Int32/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Int32/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Int32/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Int32/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Int32/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Int32/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Int32/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Int32/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Int64/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Int64/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Int64/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Int64/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Int64/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Int64/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Int64/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Int64/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/InvalidCastException/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/InvalidCastException/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/InvalidCastException/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/InvalidCastException/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/InvalidOperationException/Overview/vb/Other/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/InvalidOperationException/Overview/vb/Other/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/InvalidOperationException/Overview/vb/Other/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/InvalidOperationException/Overview/vb/Other/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/NotSupportedException/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/NotSupportedException/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/NotSupportedException/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/NotSupportedException/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Object/Equals/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Object/Equals/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Object/Equals/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Object/Equals/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Object/Equals/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Object/Equals/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Object/Equals/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Object/Equals/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Object/Finalize/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Object/Finalize/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Object/Finalize/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Object/Finalize/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Object/Finalize/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Object/Finalize/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Object/Finalize/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Object/Finalize/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Object/GetHashCode/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Object/GetHashCode/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Object/GetHashCode/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Object/GetHashCode/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Object/GetHashCode/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Object/GetHashCode/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Object/GetHashCode/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Object/GetHashCode/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Object/ToString/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Object/ToString/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Object/ToString/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Object/ToString/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Object/ToString/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Object/ToString/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Object/ToString/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Object/ToString/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Random/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Random/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Random/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Random/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Random/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Random/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Random/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Random/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Single/CompareTo/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Single/CompareTo/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Single/CompareTo/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Single/CompareTo/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Single/CompareTo/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Single/CompareTo/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Single/CompareTo/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Single/CompareTo/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Single/Epsilon/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Single/Epsilon/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Single/Epsilon/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Single/Epsilon/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Single/Epsilon/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Single/Epsilon/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Single/Epsilon/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Single/Epsilon/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Single/Equals/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Single/Equals/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Single/Equals/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Single/Equals/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Single/Equals/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Single/Equals/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Single/Equals/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Single/Equals/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Single/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Single/Overview/csharp/Project.csproj index f2ef551a953f3..f99395b4b2b39 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Single/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Single/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Exe - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Single/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Single/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Single/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Single/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Span/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Span/Overview/csharp/Project.csproj index 1d2763556b47b..fa04d802aa24b 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Span/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Span/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Exe - net9 + net10.0 true diff --git a/docs/fundamentals/runtime-libraries/snippets/System/String/.ctor/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/String/.ctor/csharp/Project.csproj index 44a42c18ccbab..22dd9034898ba 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/String/.ctor/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/String/.ctor/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 true diff --git a/docs/fundamentals/runtime-libraries/snippets/System/String/.ctor/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/String/.ctor/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/String/.ctor/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/String/.ctor/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/String/Format/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/String/Format/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/String/Format/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/String/Format/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/String/Format/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/String/Format/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/String/Format/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/String/Format/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/String/Intern/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/String/Intern/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/String/Intern/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/String/Intern/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/String/Intern/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/String/Intern/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/String/Intern/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/String/Intern/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/String/IsNullOrEmpty/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/String/IsNullOrEmpty/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/String/IsNullOrEmpty/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/String/IsNullOrEmpty/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/String/IsNullOrEmpty/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/String/IsNullOrEmpty/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/String/IsNullOrEmpty/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/String/IsNullOrEmpty/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/String/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/String/Overview/csharp/Project.csproj index 44a42c18ccbab..22dd9034898ba 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/String/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/String/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 true diff --git a/docs/fundamentals/runtime-libraries/snippets/System/String/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/String/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/String/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/String/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/TimeSpan/Parse/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/TimeSpan/Parse/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/TimeSpan/Parse/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/TimeSpan/Parse/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/TimeSpan/Parse/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/TimeSpan/Parse/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/TimeSpan/Parse/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/TimeSpan/Parse/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/TimeSpan/TryParse/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/TimeSpan/TryParse/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/TimeSpan/TryParse/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/TimeSpan/TryParse/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/TimeSpan/TryParse/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/TimeSpan/TryParse/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/TimeSpan/TryParse/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/TimeSpan/TryParse/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Type/GetType/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Type/GetType/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Type/GetType/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Type/GetType/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Type/MakeGenericType/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Type/MakeGenericType/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Type/MakeGenericType/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Type/MakeGenericType/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Type/MakeGenericType/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Type/MakeGenericType/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Type/MakeGenericType/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Type/MakeGenericType/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Type/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Type/Overview/csharp/Project.csproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Type/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Type/Overview/csharp/Project.csproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Type/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/Type/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Type/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Type/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 diff --git a/docs/fundamentals/runtime-libraries/snippets/System/TypeInitializationException/Overview/vb/Project.vbproj b/docs/fundamentals/runtime-libraries/snippets/System/TypeInitializationException/Overview/vb/Project.vbproj index 251a8cb33ffed..874c98f34776c 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/TypeInitializationException/Overview/vb/Project.vbproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/TypeInitializationException/Overview/vb/Project.vbproj @@ -2,7 +2,7 @@ Library - net8 + net10.0 From 5062ca16bc16da03697d22e98d12fe859a958f39 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Mon, 9 Feb 2026 18:07:44 -0800 Subject: [PATCH 3/4] don't add these new files yet --- ...ction-emit-dynamicmethod-createdelegate.md | 53 ------------ ...stem-reflection-emit-dynamicmethod-ctor.md | 81 ------------------- ...tion-emit-dynamicmethod-defineparameter.md | 20 ----- ...ction-emit-dynamicmethod-getilgenerator.md | 37 --------- ...em-reflection-emit-dynamicmethod-invoke.md | 31 ------- ...n-emit-dynamicmethod-issecuritycritical.md | 41 ---------- ...it-dynamicmethod-issecuritysafecritical.md | 41 ---------- ...mit-dynamicmethod-issecuritytransparent.md | 41 ---------- ...stem-reflection-emit-dynamicmethod-name.md | 19 ----- 9 files changed, 364 deletions(-) delete mode 100644 docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-createdelegate.md delete mode 100644 docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-ctor.md delete mode 100644 docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-defineparameter.md delete mode 100644 docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-getilgenerator.md delete mode 100644 docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-invoke.md delete mode 100644 docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritycritical.md delete mode 100644 docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritysafecritical.md delete mode 100644 docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritytransparent.md delete mode 100644 docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-name.md diff --git a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-createdelegate.md b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-createdelegate.md deleted file mode 100644 index 73b97a9bb51db..0000000000000 --- a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-createdelegate.md +++ /dev/null @@ -1,53 +0,0 @@ ---- -title: System.Reflection.Emit.DynamicMethod.CreateDelegate methods -description: Learn about the System.Reflection.Emit.DynamicMethod.CreateDelegate methods. -ms.date: 02/10/2026 -ai-usage: ai-assisted ---- -# System.Reflection.Emit.DynamicMethod.CreateDelegate methods - -[!INCLUDE [context](includes/context.md)] - -## - -Calling the method or the method completes the dynamic method. Any further attempt to alter the dynamic method, such as modifying parameter definitions or emitting more Microsoft intermediate language (MSIL), is ignored; no exception is thrown. - -To create a method body for a dynamic method when you have your own MSIL generator, call the method to obtain a object. If you don't have your own MSIL generator, call the method to obtain an object that can be used to generate the method body. - -### Examples - -The following code example creates a dynamic method that takes two parameters. The example emits a simple function body that prints the first parameter to the console, and the example uses the second parameter as the return value of the method. The example completes the method by creating a delegate, invokes the delegate with different parameters, and finally invokes the dynamic method using the method. - -:::code language="csharp" source="~/snippets/csharp/System.Reflection.Emit/DynamicMethod/.ctor/source1.cs" id="Snippet1"::: -:::code language="vb" source="~/snippets/visualbasic/System.Reflection.Emit/DynamicMethod/.ctor/source1.vb" id="Snippet1"::: - -## - -This method overload creates a delegate bound to a particular object. Such a delegate is said to be closed over its first argument. Although the method is static, it acts as if it were an instance method; the instance is `target`. - -This method overload requires `target` to be of the same type as the first parameter of the dynamic method, or to be assignable to that type (for example, a derived class). The signature of `delegateType` has all the parameters of the dynamic method except the first. For example, if the dynamic method has the parameters , , and , then `delegateType` has the parameters and ; `target` is of type . - -Calling the method or the method completes the dynamic method. Any further attempt to alter the dynamic method, such as modifying parameter definitions or emitting more Microsoft intermediate language (MSIL), is ignored; no exception is thrown. - -To create a method body for a dynamic method when you have your own MSIL generator, call the method to obtain a object. If you don't have your own MSIL generator, call the method to obtain an object that can be used to generate the method body. - -### Examples - -The following code example creates a delegate that binds a to an instance of a type, so that the method acts on the same instance each time it's invoked. - -The code example defines a class named `Example` with a private field, a class named `DerivedFromExample` that derives from the first class, a delegate type named `UseLikeStatic` that returns and has parameters of type `Example` and , and a delegate type named `UseLikeInstance` that returns and has one parameter of type . - -The example code then creates a that changes the private field of an instance of `Example` and returns the previous value. - -> [!NOTE] -> In general, changing the internal fields of classes isn't good object-oriented coding practice. - -The example code creates an instance of `Example` and then creates two delegates. The first is of type `UseLikeStatic`, which has the same parameters as the dynamic method. The second is of type `UseLikeInstance`, which lacks the first parameter (of type `Example`). This delegate is created using the method overload; the second parameter of that method overload is an instance of `Example`, in this case the instance just created, which is bound to the newly created delegate. Whenever that delegate is invoked, the dynamic method acts on the bound instance of `Example`. - -> [!NOTE] -> This is an example of the relaxed rules for delegate binding introduced in .NET Framework 2.0, along with new overloads of the method. For more information, see the class. - -The `UseLikeStatic` delegate is invoked, passing in the instance of `Example` that's bound to the `UseLikeInstance` delegate. Then the `UseLikeInstance` delegate is invoked, so that both delegates act on the same instance of `Example`. The changes in the values of the internal field are displayed after each call. Finally, a `UseLikeInstance` delegate is bound to an instance of `DerivedFromExample`, and the delegate calls are repeated. - -:::code language="csharp" source="~/snippets/csharp/System.Reflection.Emit/DynamicMethod/.ctor/source.cs" id="Snippet1"::: -:::code language="vb" source="~/snippets/visualbasic/System.Reflection.Emit/DynamicMethod/.ctor/source.vb" id="Snippet1"::: diff --git a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-ctor.md b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-ctor.md deleted file mode 100644 index 52d4369258275..0000000000000 --- a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-ctor.md +++ /dev/null @@ -1,81 +0,0 @@ ---- -title: System.Reflection.Emit.DynamicMethod constructors -description: Learn about the System.Reflection.Emit.DynamicMethod constructors. -ms.date: 02/10/2026 -ai-usage: ai-assisted ---- -# System.Reflection.Emit.DynamicMethod constructors - -[!INCLUDE [context](includes/context.md)] - -## constructor - -The dynamic method that is created by this constructor is associated with an anonymous assembly instead of an existing type or module. The anonymous assembly exists only to provide a sandbox environment for dynamic methods, that is, to isolate them from other code. This environment makes it safe for the dynamic method to be emitted and executed by partially trusted code. - -Anonymously hosted dynamic methods don't have automatic access to any types or members that are `private`, `protected`, or `internal` (`Friend` in Visual Basic). This is different from dynamic methods that are associated with an existing type or module, which have access to hidden members in their associated scope. - -Specify `true` for `restrictedSkipVisibility` if your dynamic method has to access types or members that are `private`, `protected`, or `internal`. This gives the dynamic method restricted access to these members. That is, the members can be accessed only if the following conditions are met: - -- The target members belong to an assembly that has a level of trust equal to or lower than the call stack that emits the dynamic method. - -- The call stack that emits the dynamic method is granted with the flag. This is always true when the code is executed with full trust. For partially trusted code, it's true only if the host explicitly grants the permission. - - > [!IMPORTANT] - > If the permission hasn't been granted, a security exception is thrown when is called or when the dynamic method is invoked, not when this constructor is called. No special permissions are required to emit the dynamic method. - -For example, a dynamic method that's created with `restrictedSkipVisibility` set to `true` can access a private member of any assembly on the call stack if the call stack has been granted restricted member access. If the dynamic method is created with partially trusted code on the call stack, it can't access a private member of a type in a .NET Framework assembly, because such assemblies are fully trusted. - -If `restrictedSkipVisibility` is `false`, JIT visibility checks are enforced. The code in the dynamic method has access to public methods of public classes, and exceptions are thrown if it tries to access types or members that are `private`, `protected`, or `internal`. - -When an anonymously hosted dynamic method is constructed, the call stack of the emitting assembly is included. When the method is invoked, the permissions of the emitting call stack are used instead of the permissions of the actual caller. Thus, the dynamic method can't execute at a higher level of privilege than that of the assembly that emitted it, even if it's passed to and executed by an assembly that has a higher trust level. - -This constructor specifies the method attributes and , and the calling convention . - -> [!NOTE] -> This constructor was introduced in .NET Framework 3.5 or later. - -## constructor - -This constructor specifies method attributes and , calling convention , and doesn't skip just-in-time (JIT) visibility checks. - -The dynamic method created with this constructor has access to public and `internal` (`Friend` in Visual Basic) members of all the types contained in module `m`. - -> [!NOTE] -> For backward compatibility, this constructor demands with the flag if the following conditions are both true: `m` is a module other than the calling module, and the demand for with the flag has failed. If the demand for succeeds, the operation is allowed. - -### Examples - -The following code example creates a dynamic method that takes two parameters. The example emits a simple function body that prints the first parameter to the console, and the example uses the second parameter as the return value of the method. The example completes the method by creating a delegate, invokes the delegate with different parameters, and finally invokes the dynamic method using the method. - -:::code language="csharp" source="~/snippets/csharp/System.Reflection.Emit/DynamicMethod/.ctor/source1.cs" id="Snippet1"::: -:::code language="vb" source="~/snippets/visualbasic/System.Reflection.Emit/DynamicMethod/.ctor/source1.vb" id="Snippet1"::: - -## constructor - -The dynamic method created with this constructor has access to all members of the type `owner`, and to public and `internal` (`Friend` in Visual Basic) members of all the other types in the module that contains `owner`. - -This constructor specifies method attributes and , calling convention , and doesn't skip just-in-time (JIT) visibility checks. - -> [!NOTE] -> For backward compatibility, this constructor demands with the flag if the following conditions are both true: `owner` is in a module other than the calling module, and the demand for with the flag has failed. If the demand for succeeds, the operation is allowed. - -### Examples - -The following code example creates a that's logically associated with a type. This association gives it access to the private members of that type. - -The code example defines a class named `Example` with a private field, a class named `DerivedFromExample` that derives from the first class, a delegate type named `UseLikeStatic` that returns and has parameters of type `Example` and , and a delegate type named `UseLikeInstance` that returns and has one parameter of type . - -The example code then creates a that changes the private field of an instance of `Example` and returns the previous value. - -> [!NOTE] -> In general, changing the internal fields of classes isn't good object-oriented coding practice. - -The example code creates an instance of `Example` and then creates two delegates. The first is of type `UseLikeStatic`, which has the same parameters as the dynamic method. The second is of type `UseLikeInstance`, which lacks the first parameter (of type `Example`). This delegate is created using the method overload; the second parameter of that method overload is an instance of `Example`, in this case the instance just created, which is bound to the newly created delegate. Whenever that delegate is invoked, the dynamic method acts on the bound instance of `Example`. - -> [!NOTE] -> This is an example of the relaxed rules for delegate binding introduced in .NET Framework 2.0, along with new overloads of the method. For more information, see the class. - -The `UseLikeStatic` delegate is invoked, passing in the instance of `Example` that's bound to the `UseLikeInstance` delegate. Then the `UseLikeInstance` delegate is invoked, so that both delegates act on the same instance of `Example`. The changes in the values of the internal field are displayed after each call. Finally, a `UseLikeInstance` delegate is bound to an instance of `DerivedFromExample`, and the delegate calls are repeated. - -:::code language="csharp" source="~/snippets/csharp/System.Reflection.Emit/DynamicMethod/.ctor/source.cs" id="Snippet1"::: -:::code language="vb" source="~/snippets/visualbasic/System.Reflection.Emit/DynamicMethod/.ctor/source.vb" id="Snippet1"::: diff --git a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-defineparameter.md b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-defineparameter.md deleted file mode 100644 index aa615217e02a8..0000000000000 --- a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-defineparameter.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: System.Reflection.Emit.DynamicMethod.DefineParameter method -description: Learn about the System.Reflection.Emit.DynamicMethod.DefineParameter method. -ms.date: 02/10/2026 -ai-usage: ai-assisted ---- -# System.Reflection.Emit.DynamicMethod.DefineParameter method - -[!INCLUDE [context](includes/context.md)] - -If `position` is 0, the method refers to the return value. Setting parameter information has no effect on the return value. - -If the dynamic method has already been completed, by calling the or method, the method has no effect. No exception is thrown. - -## Examples - -The following code example shows how to define parameter information for a dynamic method. This code example is part of a larger example provided for the class. - -:::code language="csharp" source="~/snippets/csharp/System.Reflection.Emit/DynamicMethod/Overview/source.cs" id="Snippet33"::: -:::code language="vb" source="~/snippets/visualbasic/System.Reflection.Emit/DynamicMethod/Overview/source.vb" id="Snippet33"::: diff --git a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-getilgenerator.md b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-getilgenerator.md deleted file mode 100644 index cd3f38a6b613e..0000000000000 --- a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-getilgenerator.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -title: System.Reflection.Emit.DynamicMethod.GetILGenerator methods -description: Learn about the System.Reflection.Emit.DynamicMethod.GetILGenerator methods. -ms.date: 02/10/2026 -ai-usage: ai-assisted ---- -# System.Reflection.Emit.DynamicMethod.GetILGenerator methods - -[!INCLUDE [context](includes/context.md)] - -## - -After a dynamic method has been completed, by calling the or method, any further attempt to add MSIL is ignored. No exception is thrown. - -> [!NOTE] -> There are restrictions on unverifiable code in dynamic methods, even in some full-trust scenarios. See the "Verification" section in Remarks for . - -### Examples - -The following code example creates a dynamic method that takes two parameters. The example emits a simple function body that prints the first parameter to the console, and the example uses the second parameter as the return value of the method. The example completes the method by creating a delegate, invokes the delegate with different parameters, and finally invokes the dynamic method using the method. - -:::code language="csharp" source="~/snippets/csharp/System.Reflection.Emit/DynamicMethod/.ctor/source1.cs" id="Snippet1"::: -:::code language="vb" source="~/snippets/visualbasic/System.Reflection.Emit/DynamicMethod/.ctor/source1.vb" id="Snippet1"::: - -## - -After a dynamic method has been completed, by calling the or method, any further attempt to add MSIL is ignored. No exception is thrown. - -> [!NOTE] -> There are restrictions on unverifiable code in dynamic methods, even in some full-trust scenarios. See the "Verification" section in Remarks for . - -### Examples - -The following code example demonstrates this method overload. This code example is part of a larger example provided for the class. - -:::code language="csharp" source="~/snippets/csharp/System.Reflection.Emit/DynamicMethod/Overview/source.cs" id="Snippet2"::: -:::code language="vb" source="~/snippets/visualbasic/System.Reflection.Emit/DynamicMethod/Overview/source.vb" id="Snippet2"::: diff --git a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-invoke.md b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-invoke.md deleted file mode 100644 index 9202c64d1c51a..0000000000000 --- a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-invoke.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -title: System.Reflection.Emit.DynamicMethod.Invoke method -description: Learn about the System.Reflection.Emit.DynamicMethod.Invoke method. -ms.date: 02/10/2026 -ai-usage: ai-assisted ---- -# System.Reflection.Emit.DynamicMethod.Invoke method - -[!INCLUDE [context](includes/context.md)] - -In addition to the listed exceptions, the calling code should be prepared to catch any exceptions thrown by the dynamic method. - -Executing a dynamic method with a delegate created by the method is more efficient than executing it with the method. - -Calling the method or the method completes the dynamic method. Any further attempt to alter the dynamic method, such as modifying parameter definitions or emitting more Microsoft intermediate language (MSIL), is ignored; no exception is thrown. - -All dynamic methods are static, so the `obj` parameter is always ignored. To treat a dynamic method as if it were an instance method, use the overload that takes an object instance. - -If the dynamic method has no parameters, the value of `parameters` should be `null`. Otherwise the number, type, and order of elements in the parameters array should be identical to the number, type, and order of parameters of the dynamic method. - -> [!NOTE] -> This method overload is called by the method overload inherited from the class, so the preceding remarks apply to both overloads. - -This method doesn't demand permissions directly, but invoking the dynamic method can result in security demands, depending on the method. For example, no demands are made for anonymously hosted dynamic methods that are created with the `restrictedSkipVisibility` parameter set to `false`. On the other hand, if you create a method with `restrictedSkipVisibility` set to `true` so it can access a hidden member of a target assembly, the method causes a demand for the permissions of the target assembly plus with the flag. - -## Examples - -The following code example invokes a dynamic method with exact binding, using the US-English culture. This code example is part of a larger example provided for the class. - -:::code language="csharp" source="~/snippets/csharp/System.Reflection.Emit/DynamicMethod/Overview/source.cs" id="Snippet4"::: -:::code language="vb" source="~/snippets/visualbasic/System.Reflection.Emit/DynamicMethod/Overview/source.vb" id="Snippet4"::: diff --git a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritycritical.md b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritycritical.md deleted file mode 100644 index 6bae05b6ff73d..0000000000000 --- a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritycritical.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: System.Reflection.Emit.DynamicMethod.IsSecurityCritical property -description: Learn about the System.Reflection.Emit.DynamicMethod.IsSecurityCritical property. -ms.date: 02/10/2026 -ai-usage: ai-assisted ---- -# System.Reflection.Emit.DynamicMethod.IsSecurityCritical property - -[!INCLUDE [context](includes/context.md)] - -The , , and properties report the transparency level of the dynamic method as determined by the common language runtime (CLR). The combinations of these properties are shown in the following table: - -| Security level | IsSecurityCritical | IsSecuritySafeCritical | IsSecurityTransparent | -|----------------|--------------------|-----------------------|-----------------------| -| Critical | `true` | `false` | `false` | -| Safe critical | `true` | `true` | `false` | -| Transparent | `false` | `false` | `true` | - -Using these properties is much simpler than examining the security annotations of an assembly and its types, checking the current trust level, and attempting to duplicate the runtime's rules. - -The transparency of a dynamic method depends on the module it's associated with. If the dynamic method is associated with a type rather than a module, its transparency depends on the module that contains the type. Dynamic methods don't have security annotations, so they're assigned the default transparency for the associated module. - -- Anonymously hosted dynamic methods are always transparent, because the system-provided module that contains them is transparent. - -- The transparency of a dynamic method that's associated with a trusted assembly (that is, a strong-named assembly that's installed in the global assembly cache) is described in the following table. - - | Assembly annotation | Level 1 transparency | Level 2 transparency | - |---------------------|----------------------|----------------------| - | Fully transparent | Transparent | Transparent | - | Fully critical | Critical | Critical | - | Mixed transparency | Transparent | Transparent | - | Security-agnostic | Safe-critical | Critical | - - For example, if you associate a dynamic method with a type that's in mscorlib.dll, which has level 2 mixed transparency, the dynamic method is transparent and can't execute critical code. For information about transparency levels, see [Security-Transparent Code, Level 1](/dotnet/framework/misc/security-transparent-code-level-1) and [Security-Transparent Code, Level 2](/dotnet/framework/misc/security-transparent-code-level-2). - - > [!NOTE] - > Associating a dynamic method with a module in a trusted level 1 assembly that's security-agnostic, such as System.dll, doesn't permit elevation of trust. If the grant set of the code that calls the dynamic method doesn't include the grant set of System.dll (that is, full trust), is thrown when the dynamic method is called. - -- The transparency of a dynamic method that's associated with a partially trusted assembly depends on how the assembly is loaded. If the assembly is loaded with partial trust (for example, into a sandboxed application domain), the runtime ignores the security annotations of the assembly. The assembly and all its types and members, including dynamic methods, are treated as transparent. The runtime pays attention to security annotations only if the partial-trust assembly is loaded with full trust (for example, into the default application domain of a desktop application). In that case, the runtime assigns the dynamic method the default transparency for methods according to the assembly's annotations. - -For more information about reflection emit and transparency, see [Security Issues in Reflection Emit](/dotnet/framework/reflection-and-codedom/security-issues-in-reflection-emit). For information about transparency, see [Security Changes](/dotnet/framework/security/security-changes). diff --git a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritysafecritical.md b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritysafecritical.md deleted file mode 100644 index 31e9004707e43..0000000000000 --- a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritysafecritical.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: System.Reflection.Emit.DynamicMethod.IsSecuritySafeCritical property -description: Learn about the System.Reflection.Emit.DynamicMethod.IsSecuritySafeCritical property. -ms.date: 02/10/2026 -ai-usage: ai-assisted ---- -# System.Reflection.Emit.DynamicMethod.IsSecuritySafeCritical property - -[!INCLUDE [context](includes/context.md)] - -The , , and properties report the transparency level of the dynamic method as determined by the common language runtime (CLR). The combinations of these properties are shown in the following table: - -| Security level | IsSecurityCritical | IsSecuritySafeCritical | IsSecurityTransparent | -|----------------|--------------------|-----------------------|-----------------------| -| Critical | `true` | `false` | `false` | -| Safe critical | `true` | `true` | `false` | -| Transparent | `false` | `false` | `true` | - -Using these properties is much simpler than examining the security annotations of an assembly and its types, checking the current trust level, and attempting to duplicate the runtime's rules. - -The transparency of a dynamic method depends on the module it's associated with. If the dynamic method is associated with a type rather than a module, its transparency depends on the module that contains the type. Dynamic methods don't have security annotations, so they're assigned the default transparency for the associated module. - -- Anonymously hosted dynamic methods are always transparent, because the system-provided module that contains them is transparent. - -- The transparency of a dynamic method that's associated with a trusted assembly (that is, a strong-named assembly that's installed in the global assembly cache) is described in the following table. - - | Assembly annotation | Level 1 transparency | Level 2 transparency | - |---------------------|----------------------|----------------------| - | Fully transparent | Transparent | Transparent | - | Fully critical | Critical | Critical | - | Mixed transparency | Transparent | Transparent | - | Security-agnostic | Safe-critical | Critical | - - For example, if you associate a dynamic method with a type that's in mscorlib.dll, which has level 2 mixed transparency, the dynamic method is transparent and can't execute critical code. For information about transparency levels, see [Security-Transparent Code, Level 1](/dotnet/framework/misc/security-transparent-code-level-1) and [Security-Transparent Code, Level 2](/dotnet/framework/misc/security-transparent-code-level-2). - - > [!NOTE] - > Associating a dynamic method with a module in a trusted level 1 assembly that's security-agnostic, such as System.dll, doesn't permit elevation of trust. If the grant set of the code that calls the dynamic method doesn't include the grant set of System.dll (that is, full trust), is thrown when the dynamic method is called. - -- The transparency of a dynamic method that's associated with a partially trusted assembly depends on how the assembly is loaded. If the assembly is loaded with partial trust (for example, into a sandboxed application domain), the runtime ignores the security annotations of the assembly. The assembly and all its types and members, including dynamic methods, are treated as transparent. The runtime pays attention to security annotations only if the partial-trust assembly is loaded with full trust (for example, into the default application domain of a desktop application). In that case, the runtime assigns the dynamic method the default transparency for methods according to the assembly's annotations. - -For more information about reflection emit and transparency, see [Security Issues in Reflection Emit](/dotnet/framework/reflection-and-codedom/security-issues-in-reflection-emit). For information about transparency, see [Security Changes](/dotnet/framework/security/security-changes). diff --git a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritytransparent.md b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritytransparent.md deleted file mode 100644 index cf20060f09d53..0000000000000 --- a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-issecuritytransparent.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: System.Reflection.Emit.DynamicMethod.IsSecurityTransparent property -description: Learn about the System.Reflection.Emit.DynamicMethod.IsSecurityTransparent property. -ms.date: 02/10/2026 -ai-usage: ai-assisted ---- -# System.Reflection.Emit.DynamicMethod.IsSecurityTransparent property - -[!INCLUDE [context](includes/context.md)] - -The , , and properties report the transparency level of the dynamic method as determined by the common language runtime (CLR). The combinations of these properties are shown in the following table: - -| Security level | IsSecurityCritical | IsSecuritySafeCritical | IsSecurityTransparent | -|----------------|--------------------|-----------------------|-----------------------| -| Critical | `true` | `false` | `false` | -| Safe critical | `true` | `true` | `false` | -| Transparent | `false` | `false` | `true` | - -Using these properties is much simpler than examining the security annotations of an assembly and its types, checking the current trust level, and attempting to duplicate the runtime's rules. - -The transparency of a dynamic method depends on the module it's associated with. If the dynamic method is associated with a type rather than a module, its transparency depends on the module that contains the type. Dynamic methods don't have security annotations, so they're assigned the default transparency for the associated module. - -- Anonymously hosted dynamic methods are always transparent, because the system-provided module that contains them is transparent. - -- The transparency of a dynamic method that's associated with a trusted assembly (that is, a strong-named assembly that's installed in the global assembly cache) is described in the following table. - - | Assembly annotation | Level 1 transparency | Level 2 transparency | - |---------------------|----------------------|----------------------| - | Fully transparent | Transparent | Transparent | - | Fully critical | Critical | Critical | - | Mixed transparency | Transparent | Transparent | - | Security-agnostic | Safe-critical | Critical | - - For example, if you associate a dynamic method with a type that's in mscorlib.dll, which has level 2 mixed transparency, the dynamic method is transparent and can't execute critical code. For information about transparency levels, see [Security-Transparent Code, Level 1](/dotnet/framework/misc/security-transparent-code-level-1) and [Security-Transparent Code, Level 2](/dotnet/framework/misc/security-transparent-code-level-2). - - > [!NOTE] - > Associating a dynamic method with a module in a trusted level 1 assembly that's security-agnostic, such as System.dll, doesn't permit elevation of trust. If the grant set of the code that calls the dynamic method doesn't include the grant set of System.dll (that is, full trust), is thrown when the dynamic method is called. - -- The transparency of a dynamic method that's associated with a partially trusted assembly depends on how the assembly is loaded. If the assembly is loaded with partial trust (for example, into a sandboxed application domain), the runtime ignores the security annotations of the assembly. The assembly and all its types and members, including dynamic methods, are treated as transparent. The runtime pays attention to security annotations only if the partial-trust assembly is loaded with full trust (for example, into the default application domain of a desktop application). In that case, the runtime assigns the dynamic method the default transparency for methods according to the assembly's annotations. - -For more information about reflection emit and transparency, see [Security Issues in Reflection Emit](/dotnet/framework/reflection-and-codedom/security-issues-in-reflection-emit). For information about transparency, see [Security Changes](/dotnet/framework/security/security-changes). diff --git a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-name.md b/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-name.md deleted file mode 100644 index 9846db7c93c33..0000000000000 --- a/docs/fundamentals/runtime-libraries/system-reflection-emit-dynamicmethod-name.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -title: System.Reflection.Emit.DynamicMethod.Name property -description: Learn about the System.Reflection.Emit.DynamicMethod.Name property. -ms.date: 02/10/2026 -ai-usage: ai-assisted ---- -# System.Reflection.Emit.DynamicMethod.Name property - -[!INCLUDE [context](includes/context.md)] - -> [!NOTE] -> It's not necessary to name dynamic methods. - -## Examples - -The following code example displays the name of a dynamic method. This code example is part of a larger example provided for the class. - -:::code language="csharp" source="~/snippets/csharp/System.Reflection.Emit/DynamicMethod/Overview/source.cs" id="Snippet27"::: -:::code language="vb" source="~/snippets/visualbasic/System.Reflection.Emit/DynamicMethod/Overview/source.vb" id="Snippet27"::: From 64b6648439c7f17ba24f5304e73a13b6969ab1b2 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Mon, 9 Feb 2026 18:18:24 -0800 Subject: [PATCH 4/4] Update docs/fundamentals/runtime-libraries/snippets/System/Boolean/Overview/csharp/Project.csproj --- .../snippets/System/Boolean/Overview/csharp/Project.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/fundamentals/runtime-libraries/snippets/System/Boolean/Overview/csharp/Project.csproj b/docs/fundamentals/runtime-libraries/snippets/System/Boolean/Overview/csharp/Project.csproj index 2d9e6c5bd270b..22dd9034898ba 100644 --- a/docs/fundamentals/runtime-libraries/snippets/System/Boolean/Overview/csharp/Project.csproj +++ b/docs/fundamentals/runtime-libraries/snippets/System/Boolean/Overview/csharp/Project.csproj @@ -3,7 +3,7 @@ Library net10.0 - true + true