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
- TableStyle.cs
- Part.cs
- DrawingBrush.cs
- SystemException.cs
- SystemIcmpV4Statistics.cs
- OracleColumn.cs
- XMLSyntaxException.cs
- MaskedTextBoxDesignerActionList.cs
- FreezableOperations.cs
- ContentOperations.cs
- RulePatternOps.cs
- DataViewManager.cs
- SafeViewOfFileHandle.cs
- Transform3DGroup.cs
- _BaseOverlappedAsyncResult.cs
- XPathLexer.cs
- BinaryNode.cs
- PerformanceCounterManager.cs
- CodeGroup.cs
- AbsoluteQuery.cs
- DtrList.cs
- TiffBitmapEncoder.cs
- FullTextState.cs
- OdbcPermission.cs
- NavigationExpr.cs
- Container.cs
- CodeAccessSecurityEngine.cs
- MonthChangedEventArgs.cs
- TrackingRecord.cs
- HostVisual.cs
- PersonalizablePropertyEntry.cs
- WebPartConnectVerb.cs
- TemplateControlCodeDomTreeGenerator.cs
- RawMouseInputReport.cs
- NullReferenceException.cs
- ConsoleCancelEventArgs.cs
- SqlEnums.cs
- PointCollection.cs
- WaitHandleCannotBeOpenedException.cs
- DiscoveryClientDocuments.cs
- Propagator.cs
- ListBoxAutomationPeer.cs
- XappLauncher.cs
- DataGridViewTextBoxEditingControl.cs
- SqlDependency.cs
- ZipIOExtraFieldElement.cs
- EntityContainerRelationshipSetEnd.cs
- HttpAsyncResult.cs
- AcceptorSessionSymmetricMessageSecurityProtocol.cs
- WebBrowserPermission.cs
- TrackingProvider.cs
- MetadataCollection.cs
- SmtpNtlmAuthenticationModule.cs
- BooleanSwitch.cs
- ClickablePoint.cs
- DataRecordObjectView.cs
- MetadataCache.cs
- CrossContextChannel.cs
- Collection.cs
- Freezable.cs
- XsltLoader.cs
- xsdvalidator.cs
- DocumentAutomationPeer.cs
- WebPartZoneBase.cs
- NamespaceInfo.cs
- RegexParser.cs
- Size.cs
- TableCellAutomationPeer.cs
- DiagnosticsConfigurationHandler.cs
- Int64Storage.cs
- UInt32.cs
- TextSearch.cs
- TcpClientCredentialType.cs
- ExpandableObjectConverter.cs
- ReadContentAsBinaryHelper.cs
- BinaryUtilClasses.cs
- ImageSource.cs
- ZipIOLocalFileHeader.cs
- MeshGeometry3D.cs
- XmlSerializationGeneratedCode.cs
- CacheAxisQuery.cs
- Int32Animation.cs
- DataGridViewButtonCell.cs
- ColorAnimation.cs
- HostingEnvironment.cs
- AnonymousIdentificationModule.cs
- WebPartEditorApplyVerb.cs
- TemplatedWizardStep.cs
- Storyboard.cs
- TargetControlTypeAttribute.cs
- Comparer.cs
- FormatterConverter.cs
- ContentOperations.cs
- ReadContentAsBinaryHelper.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- OperationDescription.cs
- Section.cs
- Msec.cs
- Preprocessor.cs
- MailBnfHelper.cs