diff --git a/src/coreclr/System.Private.CoreLib/src/System/Collections/Generic/ArraySortHelper.CoreCLR.cs b/src/coreclr/System.Private.CoreLib/src/System/Collections/Generic/ArraySortHelper.CoreCLR.cs index 0959bc67f47f8..7fb9c931d0405 100644 --- a/src/coreclr/System.Private.CoreLib/src/System/Collections/Generic/ArraySortHelper.CoreCLR.cs +++ b/src/coreclr/System.Private.CoreLib/src/System/Collections/Generic/ArraySortHelper.CoreCLR.cs @@ -20,7 +20,6 @@ internal sealed partial class ArraySortHelper public static IArraySortHelper Default => s_defaultArraySortHelper; - [DynamicDependency("#ctor", typeof(GenericArraySortHelper<>))] private static IArraySortHelper CreateArraySortHelper() { IArraySortHelper defaultArraySortHelper; @@ -55,7 +54,6 @@ internal sealed partial class ArraySortHelper public static IArraySortHelper Default => s_defaultArraySortHelper; - [DynamicDependency("#ctor", typeof(GenericArraySortHelper<,>))] private static IArraySortHelper CreateArraySortHelper() { IArraySortHelper defaultArraySortHelper; diff --git a/src/libraries/System.Private.CoreLib/src/System/Reflection/InvokerEmitUtil.cs b/src/libraries/System.Private.CoreLib/src/System/Reflection/InvokerEmitUtil.cs index f13850b1dcc9b..00ff3ce98e59a 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Reflection/InvokerEmitUtil.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Reflection/InvokerEmitUtil.cs @@ -167,17 +167,14 @@ public static void Throw_NullReference_InvokeNullRefReturned() private static class Methods { private static MethodInfo? s_ByReferenceOfByte_Value; - [DynamicDependency(DynamicallyAccessedMemberTypes.PublicMethods, typeof(ByReference<>))] public static MethodInfo ByReferenceOfByte_Value() => s_ByReferenceOfByte_Value ??= typeof(ByReference).GetMethod("get_Value")!; private static MethodInfo? s_ThrowHelper_Throw_NullReference_InvokeNullRefReturned; - [DynamicDependency(DynamicallyAccessedMemberTypes.PublicMethods, typeof(ThrowHelper))] public static MethodInfo ThrowHelper_Throw_NullReference_InvokeNullRefReturned() => s_ThrowHelper_Throw_NullReference_InvokeNullRefReturned ??= typeof(ThrowHelper).GetMethod(nameof(ThrowHelper.Throw_NullReference_InvokeNullRefReturned))!; private static MethodInfo? s_Pointer_Box; - [DynamicDependency(DynamicallyAccessedMemberTypes.PublicMethods, typeof(Pointer))] public static MethodInfo Pointer_Box() => s_Pointer_Box ??= typeof(Pointer).GetMethod(nameof(Pointer.Box), new[] { typeof(void*), typeof(Type) })!;