Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / MissingMethodException.cs / 1 / MissingMethodException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: MissingMethodException ** ** ** 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; [System.Runtime.InteropServices.ComVisible(true)] [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 String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("MissingMethod_Name", ClassName + "." + MemberName + (Signature != null ? " " + FormatSignature(Signature) : ""))); } } } // Called from the EE private MissingMethodException(String className, String methodName, byte[] signature) { ClassName = className; MemberName = methodName; Signature = 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. } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: MissingMethodException ** ** ** 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; [System.Runtime.InteropServices.ComVisible(true)] [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 String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("MissingMethod_Name", ClassName + "." + MemberName + (Signature != null ? " " + FormatSignature(Signature) : ""))); } } } // Called from the EE private MissingMethodException(String className, String methodName, byte[] signature) { ClassName = className; MemberName = methodName; Signature = 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. } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CompressionTracing.cs
- ImageSource.cs
- GridItem.cs
- Select.cs
- AttributeProviderAttribute.cs
- WebPartDisplayModeCancelEventArgs.cs
- CategoryGridEntry.cs
- SqlInternalConnectionTds.cs
- SpoolingTaskBase.cs
- DetailsViewCommandEventArgs.cs
- ConfigXmlAttribute.cs
- AssemblyCollection.cs
- InputLangChangeRequestEvent.cs
- ItemCheckedEvent.cs
- SmiEventStream.cs
- Exceptions.cs
- TextDecorationCollectionConverter.cs
- ListGeneralPage.cs
- XamlReaderHelper.cs
- SapiRecognizer.cs
- String.cs
- ToolStripScrollButton.cs
- WebPartDisplayModeEventArgs.cs
- GroupBoxAutomationPeer.cs
- TagMapInfo.cs
- SmiRecordBuffer.cs
- ServicePointManager.cs
- TextOnlyOutput.cs
- FileDialog_Vista_Interop.cs
- LayoutEditorPart.cs
- QuaternionValueSerializer.cs
- SerializationException.cs
- ObfuscateAssemblyAttribute.cs
- StaticSiteMapProvider.cs
- SafeRsaProviderHandle.cs
- HtmlEmptyTagControlBuilder.cs
- TextBoxLine.cs
- GlyphRun.cs
- JsonReaderWriterFactory.cs
- UnsafeNativeMethodsPenimc.cs
- CodeGenerator.cs
- AtomMaterializerLog.cs
- MarginsConverter.cs
- DataGridViewCellStyleConverter.cs
- SettingsAttributeDictionary.cs
- DateTimeConverter.cs
- JsonReaderDelegator.cs
- TextRenderingModeValidation.cs
- TextParagraphProperties.cs
- Adorner.cs
- HtmlInputFile.cs
- FolderBrowserDialog.cs
- DrawingState.cs
- SignatureDescription.cs
- ExtentCqlBlock.cs
- CodeAttributeDeclarationCollection.cs
- PathStreamGeometryContext.cs
- FormatterConverter.cs
- WindowsGraphicsWrapper.cs
- ExpressionDumper.cs
- DecimalAnimationBase.cs
- SoapWriter.cs
- VarInfo.cs
- SqlMethods.cs
- SiteMapPath.cs
- WhitespaceRule.cs
- ExpressionBindings.cs
- ToolStripItemTextRenderEventArgs.cs
- WebException.cs
- SdlChannelSink.cs
- XmlSchemaGroupRef.cs
- CheckStoreFileValidityRequest.cs
- StyleConverter.cs
- NavigationCommands.cs
- NavigationProperty.cs
- X509CertificateCollection.cs
- VectorAnimation.cs
- Int64KeyFrameCollection.cs
- SqlDataSourceStatusEventArgs.cs
- EmptyEnumerator.cs
- SchemaInfo.cs
- EdmItemCollection.OcAssemblyCache.cs
- SimpleBitVector32.cs
- ProxyGenerator.cs
- DataSet.cs
- WebPartConnectionsCloseVerb.cs
- XmlReaderDelegator.cs
- WrappedIUnknown.cs
- DataPagerFieldItem.cs
- ListViewHitTestInfo.cs
- FlowDocumentReaderAutomationPeer.cs
- BaseDataBoundControl.cs
- ModuleBuilderData.cs
- TextAdaptor.cs
- Clipboard.cs
- OpenTypeLayout.cs
- DetailsViewUpdateEventArgs.cs
- _ContextAwareResult.cs
- IISMapPath.cs
- DataGridCheckBoxColumn.cs