Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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. } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OleDbConnectionPoolGroupProviderInfo.cs
- InputBindingCollection.cs
- StoreAnnotationsMap.cs
- PathTooLongException.cs
- ResolveCompletedEventArgs.cs
- ValidationUtility.cs
- TabControlCancelEvent.cs
- Animatable.cs
- WebScriptEndpointElement.cs
- DrawingImage.cs
- RepeatBehaviorConverter.cs
- DocumentPageViewAutomationPeer.cs
- Math.cs
- MenuCommands.cs
- AndCondition.cs
- WebBrowserDocumentCompletedEventHandler.cs
- RbTree.cs
- ExpressionVisitorHelpers.cs
- BufferedStream.cs
- cookieexception.cs
- TabControlEvent.cs
- TypeInfo.cs
- ManipulationDevice.cs
- SerializationException.cs
- DescendentsWalkerBase.cs
- CodeDOMUtility.cs
- ExceptionUtil.cs
- QueryableFilterUserControl.cs
- SafeArchiveContext.cs
- ConnectionStringSettings.cs
- GradientSpreadMethodValidation.cs
- TypeLoadException.cs
- HttpContextServiceHost.cs
- GridViewColumn.cs
- CollectionType.cs
- RawStylusInputCustomDataList.cs
- VoiceSynthesis.cs
- ExpandSegment.cs
- WinEventQueueItem.cs
- ToolStripEditorManager.cs
- AssemblyInfo.cs
- _NtlmClient.cs
- InvalidOleVariantTypeException.cs
- ConfigurationValues.cs
- DebugController.cs
- PtsHost.cs
- Peer.cs
- XmlBoundElement.cs
- TypeElementCollection.cs
- BaseDataBoundControl.cs
- EncodingTable.cs
- FieldAccessException.cs
- Blend.cs
- ActionFrame.cs
- OracleRowUpdatedEventArgs.cs
- SingleStorage.cs
- UnsafeNativeMethods.cs
- OletxEnlistment.cs
- SizeFConverter.cs
- ConditionBrowserDialog.cs
- MailBnfHelper.cs
- _SslSessionsCache.cs
- TreeNodeClickEventArgs.cs
- ReachDocumentReferenceSerializerAsync.cs
- RoutedCommand.cs
- Ipv6Element.cs
- BitmapEffectrendercontext.cs
- PhysicalOps.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- SignatureConfirmationElement.cs
- SigningCredentials.cs
- ToolStripDropDownClosingEventArgs.cs
- PointLightBase.cs
- MailMessage.cs
- CompositeFontInfo.cs
- ScopedKnownTypes.cs
- DataControlButton.cs
- ViewGenerator.cs
- DataMember.cs
- HtmlEncodedRawTextWriter.cs
- WindowsAuthenticationEventArgs.cs
- ItemCollection.cs
- EndpointDispatcher.cs
- _FtpDataStream.cs
- ComContractElementCollection.cs
- ImageField.cs
- WebPartHelpVerb.cs
- DynamicControl.cs
- SQLInt16.cs
- DiagnosticSection.cs
- Animatable.cs
- Mapping.cs
- PeerCollaborationPermission.cs
- RemoteWebConfigurationHost.cs
- PersonalizationEntry.cs
- TypeUtil.cs
- InkCanvasSelection.cs
- TableRowGroup.cs
- PropertyDescriptorGridEntry.cs
- EntitySqlQueryCacheKey.cs