Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / MissingMethodException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated protected MissingMethodException(SerializationInfo info, StreamingContext context) : base(info, context) { } public override String Message { [System.Security.SecuritySafeCritical] // auto-generated get { if (ClassName == null) { return base.Message; } else { // do any desired fixups to classname here. return 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); } [System.Security.SecuritySafeCritical] // auto-generated protected MissingMethodException(SerializationInfo info, StreamingContext context) : base(info, context) { } public override String Message { [System.Security.SecuritySafeCritical] // auto-generated get { if (ClassName == null) { return base.Message; } else { // do any desired fixups to classname here. return 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
- ToolStripSeparator.cs
- SettingsContext.cs
- RelationshipConverter.cs
- SplitterCancelEvent.cs
- WebExceptionStatus.cs
- DesignTimeSiteMapProvider.cs
- SettingsSection.cs
- VectorAnimation.cs
- DriveNotFoundException.cs
- Assembly.cs
- SiteMap.cs
- Int32Storage.cs
- FixedTextPointer.cs
- PermissionAttributes.cs
- RealizationDrawingContextWalker.cs
- Authorization.cs
- KnownBoxes.cs
- AttributedMetaModel.cs
- CodeIdentifier.cs
- TdsEnums.cs
- RawStylusSystemGestureInputReport.cs
- EntityDataSourceWizardForm.cs
- unsafenativemethodstextservices.cs
- CapabilitiesPattern.cs
- RootProjectionNode.cs
- latinshape.cs
- MobileControl.cs
- Storyboard.cs
- BufferedGraphics.cs
- ConnectionDemuxer.cs
- DataControlExtensions.cs
- XPathDescendantIterator.cs
- Interfaces.cs
- URLIdentityPermission.cs
- Page.cs
- ImageMapEventArgs.cs
- LicenseContext.cs
- FigureHelper.cs
- BaseDataBoundControl.cs
- ResourceDictionaryCollection.cs
- TogglePatternIdentifiers.cs
- Emitter.cs
- LogStream.cs
- CompModSwitches.cs
- LineBreakRecord.cs
- SimpleFileLog.cs
- SrgsElementFactoryCompiler.cs
- ArgumentException.cs
- ProjectionCamera.cs
- CatalogPartCollection.cs
- PartitionerQueryOperator.cs
- DirectoryNotFoundException.cs
- PropertyChangingEventArgs.cs
- SerialPort.cs
- PrintController.cs
- ResourceSet.cs
- SQLByte.cs
- WebPartConnectionsEventArgs.cs
- Cast.cs
- PlacementWorkspace.cs
- documentsequencetextpointer.cs
- WriteableBitmap.cs
- SecureUICommand.cs
- XmlDictionaryReaderQuotas.cs
- SerializationBinder.cs
- ConfigurationFileMap.cs
- BitmapMetadata.cs
- XPathNavigatorKeyComparer.cs
- WpfXamlLoader.cs
- DBDataPermission.cs
- FilterableAttribute.cs
- ViewBox.cs
- StorageRoot.cs
- JpegBitmapEncoder.cs
- DBCSCodePageEncoding.cs
- SqlClientWrapperSmiStreamChars.cs
- QueryPrefixOp.cs
- SmiTypedGetterSetter.cs
- HttpConfigurationSystem.cs
- RemotingSurrogateSelector.cs
- PeerResolverMode.cs
- OdbcDataReader.cs
- ReliableOutputConnection.cs
- UpdateTranslator.cs
- StructureChangedEventArgs.cs
- WindowsScrollBarBits.cs
- TemplateModeChangedEventArgs.cs
- BulletedListEventArgs.cs
- StatusBarItemAutomationPeer.cs
- ImageMetadata.cs
- TraceContext.cs
- DataGridViewCellParsingEventArgs.cs
- VersionPair.cs
- EdmType.cs
- ObjectMemberMapping.cs
- DispatcherObject.cs
- CompositeDesignerAccessibleObject.cs
- ModelItemCollectionImpl.cs
- TaiwanLunisolarCalendar.cs
- ConditionedDesigner.cs