From c2be6fc2b84a87b29a02d6b93384431a48459886 Mon Sep 17 00:00:00 2001 From: Aaron R Robinson Date: Mon, 12 Jun 2023 15:53:38 -0700 Subject: [PATCH] Remove block of doc text for generics. Will add back when supported is added. --- .../CompilerServices/UnsafeAccessorAttribute.cs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/UnsafeAccessorAttribute.cs b/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/UnsafeAccessorAttribute.cs index fcba9de7587d0..dfff035b9d7e0 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/UnsafeAccessorAttribute.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/UnsafeAccessorAttribute.cs @@ -53,12 +53,6 @@ public enum UnsafeAccessorKind /// The first argument must be passed as ref for instance fields and methods on structs. /// The value of the first argument is not used by the implementation for static fields and methods. /// - /// The generic parameters of the extern static method are a concatenation of the type and - /// method generic arguments of the target method. For example, - /// extern static void Method1<T1, T2>(Class1<T1> @this) - /// can be used to call Class1<T1>.Method1<T2>(). The generic constraints of the - /// extern static method must match generic constraints of the target type, field or method. - /// /// Return type is considered for the signature match. modreqs and modopts are initially not considered for /// the signature match. However, if an ambiguity exists ignoring modreqs and modopts, a precise match /// is attempted. If an ambiguity still exists is thrown. @@ -66,6 +60,14 @@ public enum UnsafeAccessorKind [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] public sealed class UnsafeAccessorAttribute : Attribute { + // Block of text to include above when Generics support is added: + // + // The generic parameters of the extern static method are a concatenation of the type and + // method generic arguments of the target method. For example, + // extern static void Method1<T1, T2>(Class1<T1> @this) + // can be used to call Class1<T1>.Method1<T2>(). The generic constraints of the + // extern static method must match generic constraints of the target type, field or method. + /// /// Instantiates an providing access to a member of kind . ///