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
- coordinator.cs
- ServiceActivationException.cs
- IdnElement.cs
- FontInfo.cs
- CacheSection.cs
- Sorting.cs
- SyntaxCheck.cs
- Solver.cs
- WorkflowInvoker.cs
- autovalidator.cs
- EventLogPropertySelector.cs
- FederatedMessageSecurityOverHttpElement.cs
- XamlReaderHelper.cs
- DWriteFactory.cs
- ErrorStyle.cs
- TypedServiceOperationListItem.cs
- Header.cs
- DataServiceHost.cs
- DispatcherObject.cs
- TrackingMemoryStreamFactory.cs
- Path.cs
- AxisAngleRotation3D.cs
- XmlParserContext.cs
- WebPartEditorCancelVerb.cs
- PageCatalogPart.cs
- SystemWebCachingSectionGroup.cs
- FlowNode.cs
- DataGridCommandEventArgs.cs
- AuthenticatedStream.cs
- ParentUndoUnit.cs
- Vertex.cs
- CodePageUtils.cs
- WebSysDefaultValueAttribute.cs
- NativeObjectSecurity.cs
- Serializer.cs
- CheckBoxStandardAdapter.cs
- HiddenFieldPageStatePersister.cs
- WebPartCatalogCloseVerb.cs
- ClientConfigPaths.cs
- WrapperSecurityCommunicationObject.cs
- DataGridViewTextBoxColumn.cs
- dsa.cs
- NotCondition.cs
- ScaleTransform3D.cs
- X509Chain.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- SecurityDescriptor.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- ThreadAttributes.cs
- DocumentScope.cs
- EncryptedPackageFilter.cs
- XmlStringTable.cs
- ArglessEventHandlerProxy.cs
- PathNode.cs
- CommandCollectionEditor.cs
- WebDescriptionAttribute.cs
- Positioning.cs
- COM2PropertyDescriptor.cs
- DateTimeFormat.cs
- UrlAuthorizationModule.cs
- _NTAuthentication.cs
- CngProvider.cs
- XmlSchemaAnnotated.cs
- ParamArrayAttribute.cs
- ScrollItemPattern.cs
- ToolStripGripRenderEventArgs.cs
- DescendantBaseQuery.cs
- SqlFactory.cs
- NominalTypeEliminator.cs
- BoolExpressionVisitors.cs
- Win32SafeHandles.cs
- PrincipalPermission.cs
- CurrentTimeZone.cs
- NumberFunctions.cs
- WorkflowDesignerColors.cs
- ObjectSecurityT.cs
- Int32RectValueSerializer.cs
- _Semaphore.cs
- ListenerAdaptersInstallComponent.cs
- ViewSimplifier.cs
- PlainXmlWriter.cs
- WebConfigurationHostFileChange.cs
- SqlDataSourceView.cs
- _AuthenticationState.cs
- AbandonedMutexException.cs
- FontWeight.cs
- FreezableCollection.cs
- NameTable.cs
- SqlRewriteScalarSubqueries.cs
- ConstrainedGroup.cs
- AutoResetEvent.cs
- SingleAnimation.cs
- ImageListUtils.cs
- DataListItem.cs
- XmlDocument.cs
- LogAppendAsyncResult.cs
- IPHostEntry.cs
- BitmapEffect.cs
- CodeExporter.cs
- MaskPropertyEditor.cs