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
- MetadataArtifactLoaderResource.cs
- WebPartDescriptionCollection.cs
- XmlElement.cs
- XsdDateTime.cs
- TransactionFormatter.cs
- AppDomain.cs
- SortedList.cs
- SvcMapFileLoader.cs
- PassportAuthenticationEventArgs.cs
- RelationshipDetailsCollection.cs
- UriParserTemplates.cs
- TreeViewItem.cs
- References.cs
- ProcessThreadCollection.cs
- X509CertificateCollection.cs
- X509Extension.cs
- DataContext.cs
- HttpChannelBindingToken.cs
- FileDialog_Vista_Interop.cs
- GroupStyle.cs
- ApplicationActivator.cs
- HierarchicalDataBoundControlAdapter.cs
- Lease.cs
- LinqDataSourceSelectEventArgs.cs
- HttpValueCollection.cs
- WebConfigurationHost.cs
- TimeZone.cs
- InkCanvasInnerCanvas.cs
- MarkupExtensionParser.cs
- BitmapEffectDrawing.cs
- DataRowExtensions.cs
- UserControlAutomationPeer.cs
- ConnectionPoint.cs
- ComplexBindingPropertiesAttribute.cs
- DataGridViewLinkColumn.cs
- TraceRecords.cs
- PropertyConverter.cs
- Expander.cs
- WebPartAuthorizationEventArgs.cs
- Model3D.cs
- TemplateModeChangedEventArgs.cs
- TextTreeFixupNode.cs
- ADMembershipProvider.cs
- BasicHttpBindingElement.cs
- HttpServerVarsCollection.cs
- MsmqAppDomainProtocolHandler.cs
- ParserHooks.cs
- AudioDeviceOut.cs
- LookupBindingPropertiesAttribute.cs
- FloaterParaClient.cs
- WsatServiceCertificate.cs
- FormsAuthentication.cs
- SelectionProcessor.cs
- TypeUtil.cs
- SettingsContext.cs
- SecurityException.cs
- ContentPropertyAttribute.cs
- DecoratedNameAttribute.cs
- TemplateControl.cs
- MenuTracker.cs
- ImageSource.cs
- ServiceThrottlingElement.cs
- X509Certificate.cs
- SqlDelegatedTransaction.cs
- ReadWriteObjectLock.cs
- Delay.cs
- SHA512.cs
- SiteMapPath.cs
- XmlIlTypeHelper.cs
- DataGridViewCellConverter.cs
- Select.cs
- ArglessEventHandlerProxy.cs
- DataGridItemEventArgs.cs
- ColorTranslator.cs
- OracleString.cs
- OdbcReferenceCollection.cs
- ModifierKeysConverter.cs
- CollectionViewGroup.cs
- InternalConfigConfigurationFactory.cs
- DbProviderConfigurationHandler.cs
- Vector3DAnimationUsingKeyFrames.cs
- CultureInfoConverter.cs
- ListChunk.cs
- FullTextState.cs
- FileUtil.cs
- MarkupCompiler.cs
- SpecialFolderEnumConverter.cs
- Pointer.cs
- ByteAnimation.cs
- XmlSerializationGeneratedCode.cs
- SizeIndependentAnimationStorage.cs
- CorrelationKey.cs
- XamlTreeBuilderBamlRecordWriter.cs
- GridViewHeaderRowPresenter.cs
- ListViewDeletedEventArgs.cs
- FileDialogPermission.cs
- ChooseAction.cs
- ListenerConnectionDemuxer.cs
- ComPersistableTypeElementCollection.cs
- CodeMethodReturnStatement.cs