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
- SqlParameterCollection.cs
- SettingsProviderCollection.cs
- TraceUtils.cs
- ErrorEventArgs.cs
- VirtualDirectoryMapping.cs
- ExternalException.cs
- XmlJsonReader.cs
- _SecureChannel.cs
- ByteRangeDownloader.cs
- WaitForChangedResult.cs
- SmtpNtlmAuthenticationModule.cs
- WmiInstallComponent.cs
- TextShapeableCharacters.cs
- DataGridViewColumnCollection.cs
- BindingExpressionBase.cs
- HeaderedItemsControl.cs
- GregorianCalendar.cs
- SocketElement.cs
- StorageSetMapping.cs
- GridView.cs
- MemberCollection.cs
- HtmlElementCollection.cs
- XmlSerializationReader.cs
- validation.cs
- ControlSerializer.cs
- SqlDataSource.cs
- MachineSettingsSection.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- HttpCachePolicy.cs
- NetDispatcherFaultException.cs
- ScopeCompiler.cs
- LicenseManager.cs
- MembershipUser.cs
- ObjectDisposedException.cs
- _IPv6Address.cs
- GenericTextProperties.cs
- Localizer.cs
- DataRelation.cs
- DiscoveryClientChannelFactory.cs
- FormView.cs
- Hashtable.cs
- DeriveBytes.cs
- UniformGrid.cs
- X509PeerCertificateElement.cs
- SmtpClient.cs
- TraceContextEventArgs.cs
- GenericParameterDataContract.cs
- DocumentXPathNavigator.cs
- Image.cs
- ToolStripButton.cs
- ToolStripContainer.cs
- DocumentScope.cs
- PolicyException.cs
- DbProviderFactory.cs
- IsolatedStorage.cs
- RuleSettingsCollection.cs
- SessionStateModule.cs
- MetadataItemEmitter.cs
- EventTrigger.cs
- SqlRowUpdatedEvent.cs
- XamlFigureLengthSerializer.cs
- SortDescription.cs
- UserControlBuildProvider.cs
- ListViewDataItem.cs
- SmiContextFactory.cs
- mil_sdk_version.cs
- DefaultTypeArgumentAttribute.cs
- RectangleHotSpot.cs
- AccessibilityApplicationManager.cs
- SrgsRule.cs
- PaintValueEventArgs.cs
- ActivityExecutor.cs
- ReplacementText.cs
- InvokeBinder.cs
- MultipleViewProviderWrapper.cs
- GlobalAclOperationRequirement.cs
- SystemInformation.cs
- SQLInt32.cs
- SqlCommandSet.cs
- DATA_BLOB.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- GenericsNotImplementedException.cs
- XmlSerializableReader.cs
- ReferencedType.cs
- InstancePersistenceContext.cs
- safemediahandle.cs
- ToolboxItemFilterAttribute.cs
- TextFindEngine.cs
- AudioException.cs
- XmlSchemaInferenceException.cs
- AlphabeticalEnumConverter.cs
- SystemFonts.cs
- SiteMapNodeItem.cs
- DesignerTransactionCloseEvent.cs
- AuthenticationException.cs
- FileClassifier.cs
- KeyPullup.cs
- ADRoleFactoryConfiguration.cs
- RuntimeCompatibilityAttribute.cs
- InstanceCreationEditor.cs