diff options
Diffstat (limited to 'src/mscorlib/src/System/MissingMethodException.cs')
-rw-r--r-- | src/mscorlib/src/System/MissingMethodException.cs | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/src/mscorlib/src/System/MissingMethodException.cs b/src/mscorlib/src/System/MissingMethodException.cs deleted file mode 100644 index 426711f953..0000000000 --- a/src/mscorlib/src/System/MissingMethodException.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -/*============================================================================= -** -** -** -** Purpose: The exception class for class loading failures. -** -** -=============================================================================*/ - -namespace System { - - using System; - using System.Runtime.Remoting; - using System.Runtime.Serialization; - using System.Runtime.CompilerServices; - using System.Globalization; - [Serializable] - public class MissingMethodException : MissingMemberException, ISerializable { - public MissingMethodException() - : base(Environment.GetResourceString("Arg_MissingMethodException")) { - SetErrorCode(__HResults.COR_E_MISSINGMETHOD); - } - - public MissingMethodException(String message) - : base(message) { - SetErrorCode(__HResults.COR_E_MISSINGMETHOD); - } - - public MissingMethodException(String message, Exception inner) - : base(message, inner) { - SetErrorCode(__HResults.COR_E_MISSINGMETHOD); - } - - protected MissingMethodException(SerializationInfo info, StreamingContext context) : base(info, context) { - } - - public override String Message - { - get { - if (ClassName == null) { - return base.Message; - } else { - // do any desired fixups to classname here. - return Environment.GetResourceString("MissingMethod_Name", - ClassName + "." + MemberName + - (Signature != null ? " " + FormatSignature(Signature) : "")); - } - } - } - - public MissingMethodException(String className, String methodName) - { - ClassName = className; - MemberName = methodName; - } - - // If ClassName != null, Message will construct on the fly using it - // and the other variables. This allows customization of the - // format depending on the language environment. - } -} |