Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- HTMLTagNameToTypeMapper.cs
- CatalogZone.cs
- ResourceDisplayNameAttribute.cs
- SqlPersonalizationProvider.cs
- GenericArgumentsUpdater.cs
- StandardOleMarshalObject.cs
- HostedTransportConfigurationBase.cs
- WebSysDisplayNameAttribute.cs
- SqlDataSourceQueryEditor.cs
- XmlSchemaType.cs
- HostedHttpTransportManager.cs
- SimpleBitVector32.cs
- ComponentResourceKey.cs
- Configuration.cs
- BatchServiceHost.cs
- InvalidPrinterException.cs
- SerializableAttribute.cs
- Soap.cs
- BinaryObjectWriter.cs
- SQLGuid.cs
- Executor.cs
- PrintDialogException.cs
- XamlSerializerUtil.cs
- SessionStateItemCollection.cs
- TrackingMemoryStreamFactory.cs
- DataGridCellsPanel.cs
- DeclarativeCatalogPart.cs
- AuthenticationServiceManager.cs
- _DomainName.cs
- EventSetter.cs
- SequenceRangeCollection.cs
- PathNode.cs
- EnumMemberAttribute.cs
- StackOverflowException.cs
- SplitContainer.cs
- XmlSchemaAttributeGroupRef.cs
- AnnotationObservableCollection.cs
- XmlSchemaAnnotation.cs
- UniqueContractNameValidationBehavior.cs
- DataListItem.cs
- URLString.cs
- MaterializeFromAtom.cs
- SocketPermission.cs
- StateChangeEvent.cs
- PrimaryKeyTypeConverter.cs
- NetTcpSection.cs
- EntityCommandDefinition.cs
- RadioButtonPopupAdapter.cs
- PermissionSetEnumerator.cs
- ThumbAutomationPeer.cs
- NumericUpDownAcceleration.cs
- ViewCellRelation.cs
- StatusBarPanelClickEvent.cs
- Point3DCollection.cs
- ReadOnlyHierarchicalDataSourceView.cs
- QuaternionValueSerializer.cs
- ipaddressinformationcollection.cs
- InvariantComparer.cs
- TextBreakpoint.cs
- ApplicationProxyInternal.cs
- PhysicalAddress.cs
- SqlUDTStorage.cs
- WpfSharedXamlSchemaContext.cs
- FormsAuthenticationUser.cs
- SystemIPGlobalProperties.cs
- TagPrefixAttribute.cs
- BaseParser.cs
- EndPoint.cs
- EventHandlersStore.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- TransformerConfigurationWizardBase.cs
- _KerberosClient.cs
- EnumMember.cs
- XmlName.cs
- UpdateProgress.cs
- FileDialogCustomPlacesCollection.cs
- SmiMetaDataProperty.cs
- FastEncoderStatics.cs
- CompositeActivityTypeDescriptorProvider.cs
- ControlPropertyNameConverter.cs
- MetabaseServerConfig.cs
- LogReservationCollection.cs
- VBCodeProvider.cs
- StateDesigner.Helpers.cs
- ControlPropertyNameConverter.cs
- UserMapPath.cs
- ComplexObject.cs
- ProxyDataContractResolver.cs
- HostedTransportConfigurationManager.cs
- IpcPort.cs
- WindowsScroll.cs
- BackgroundWorker.cs
- DateRangeEvent.cs
- BitmapSizeOptions.cs
- ObjectViewListener.cs
- ProfileSettings.cs
- TransformValueSerializer.cs
- ListBase.cs
- GACMembershipCondition.cs
- DeclarativeCatalogPart.cs