Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XmlDesigner.cs
- HyperLink.cs
- DataGridTableCollection.cs
- XmlSchemaProviderAttribute.cs
- MsdtcClusterUtils.cs
- EFDataModelProvider.cs
- WebResponse.cs
- TextParagraphProperties.cs
- UriTemplateClientFormatter.cs
- _TimerThread.cs
- DesignTimeTemplateParser.cs
- ValidatorCompatibilityHelper.cs
- QEncodedStream.cs
- ScriptReferenceEventArgs.cs
- InputMethodStateChangeEventArgs.cs
- RemoveStoryboard.cs
- ListViewItem.cs
- Clause.cs
- FlowDocumentScrollViewer.cs
- XsltInput.cs
- ParentUndoUnit.cs
- GlyphInfoList.cs
- SlotInfo.cs
- HttpAsyncResult.cs
- CodeTypeParameterCollection.cs
- SchemaMapping.cs
- SafeThemeHandle.cs
- QueryExpression.cs
- Point3DCollection.cs
- EntryIndex.cs
- CssStyleCollection.cs
- PixelFormatConverter.cs
- TableLayoutPanel.cs
- MexNamedPipeBindingElement.cs
- MessageOperationFormatter.cs
- ToolStripDropDownMenu.cs
- RepeaterItem.cs
- WebContext.cs
- ToolBarButtonClickEvent.cs
- DispatchChannelSink.cs
- ZeroOpNode.cs
- DesigntimeLicenseContextSerializer.cs
- XmlSchemaAttribute.cs
- ModelTreeEnumerator.cs
- TypedAsyncResult.cs
- TreeWalkHelper.cs
- VolatileEnlistmentMultiplexing.cs
- XmlQueryStaticData.cs
- HtmlTitle.cs
- odbcmetadatacolumnnames.cs
- AuthenticationModulesSection.cs
- BooleanFacetDescriptionElement.cs
- UrlMappingsModule.cs
- KeyTime.cs
- CryptoApi.cs
- BaseDataList.cs
- PathFigureCollectionValueSerializer.cs
- TextContainer.cs
- MobileUserControlDesigner.cs
- View.cs
- datacache.cs
- LinkButton.cs
- HtmlInputCheckBox.cs
- XPathMultyIterator.cs
- UTF7Encoding.cs
- GroupJoinQueryOperator.cs
- Error.cs
- CellTreeNode.cs
- SoapUnknownHeader.cs
- CatalogZone.cs
- NameTable.cs
- DataRowComparer.cs
- FormViewInsertEventArgs.cs
- FacetChecker.cs
- MessagePartProtectionMode.cs
- ServicePointManagerElement.cs
- DateTimeHelper.cs
- NetworkCredential.cs
- LoginDesignerUtil.cs
- ClientSettingsProvider.cs
- WmlCommandAdapter.cs
- ConnectionConsumerAttribute.cs
- CryptoStream.cs
- ObjectComplexPropertyMapping.cs
- FixedSOMTextRun.cs
- BitConverter.cs
- TextRunCache.cs
- RequestResizeEvent.cs
- FileAuthorizationModule.cs
- UInt32Converter.cs
- PropertyGridView.cs
- EventMappingSettings.cs
- SrgsSemanticInterpretationTag.cs
- CustomErrorsSection.cs
- TimeoutValidationAttribute.cs
- CompiledXpathExpr.cs
- MultilineStringConverter.cs
- Deflater.cs
- CompiledQueryCacheKey.cs
- ToolboxItemAttribute.cs