diff options
-rw-r--r-- | src/mono/System.Private.CoreLib/src/System/RuntimeType.Mono.cs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/mono/System.Private.CoreLib/src/System/RuntimeType.Mono.cs b/src/mono/System.Private.CoreLib/src/System/RuntimeType.Mono.cs index 0ea6071efc5..733cebdd4c3 100644 --- a/src/mono/System.Private.CoreLib/src/System/RuntimeType.Mono.cs +++ b/src/mono/System.Private.CoreLib/src/System/RuntimeType.Mono.cs @@ -1609,24 +1609,6 @@ namespace System return att.Length != 0 ? ((DefaultMemberAttribute)att[0]).MemberName : null; } - private RuntimeConstructorInfo? m_serializationCtor; - internal RuntimeConstructorInfo? GetSerializationCtor() - { - if (m_serializationCtor == null) - { - var s_SICtorParamTypes = new Type[] { typeof(SerializationInfo), typeof(StreamingContext) }; - - m_serializationCtor = GetConstructor( - BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, - null, - CallingConventions.Any, - s_SICtorParamTypes, - null) as RuntimeConstructorInfo; - } - - return m_serializationCtor; - } - private object? CreateInstanceMono(bool nonPublic, bool wrapExceptions) { RuntimeConstructorInfo? ctor = GetDefaultConstructor(); |