Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XmlArrayAttribute.cs
- ScrollItemPattern.cs
- ConfigXmlComment.cs
- StringBlob.cs
- TabControl.cs
- CqlLexer.cs
- XmlIlVisitor.cs
- ControlIdConverter.cs
- StateRuntime.cs
- InputScopeConverter.cs
- TextElementAutomationPeer.cs
- ToolStripItemRenderEventArgs.cs
- SqlNodeAnnotation.cs
- TextPenaltyModule.cs
- MaterialGroup.cs
- ExpressionVisitor.cs
- UpDownEvent.cs
- PixelFormat.cs
- EdmSchemaError.cs
- Int32CollectionValueSerializer.cs
- Span.cs
- AppDomainUnloadedException.cs
- PropertyChangedEventManager.cs
- WCFBuildProvider.cs
- InternalResources.cs
- BinaryKeyIdentifierClause.cs
- EmptyCollection.cs
- MarshalByRefObject.cs
- Buffer.cs
- CompiledRegexRunner.cs
- TextEffect.cs
- DocumentPage.cs
- WindowsTab.cs
- AnnotationMap.cs
- JsonClassDataContract.cs
- Rect3DConverter.cs
- TextTrailingCharacterEllipsis.cs
- Pen.cs
- EnlistmentTraceIdentifier.cs
- UrlAuthorizationModule.cs
- PerSessionInstanceContextProvider.cs
- MenuAdapter.cs
- EdmValidator.cs
- PositiveTimeSpanValidator.cs
- ConnectionStringsExpressionBuilder.cs
- Pair.cs
- ScriptReferenceEventArgs.cs
- NameSpaceExtractor.cs
- StatusBar.cs
- CategoryAttribute.cs
- WebPartRestoreVerb.cs
- PageThemeBuildProvider.cs
- Journaling.cs
- CodeSnippetStatement.cs
- Int64.cs
- RepeaterItem.cs
- SizeConverter.cs
- SelectionService.cs
- BooleanConverter.cs
- DrawToolTipEventArgs.cs
- LinkedResourceCollection.cs
- AuthenticationManager.cs
- TextModifierScope.cs
- VisualCollection.cs
- MenuItemStyle.cs
- SkipStoryboardToFill.cs
- Codec.cs
- MemberInfoSerializationHolder.cs
- LineServicesCallbacks.cs
- Exceptions.cs
- Stylus.cs
- ReflectionHelper.cs
- XPathNavigator.cs
- Application.cs
- PassportIdentity.cs
- DrawingContextWalker.cs
- DLinqAssociationProvider.cs
- RepeatBehaviorConverter.cs
- IsolatedStoragePermission.cs
- AutomationTextAttribute.cs
- IndexedString.cs
- ComboBox.cs
- TableRow.cs
- SafeFileMappingHandle.cs
- InstanceDataCollectionCollection.cs
- HashRepartitionStream.cs
- TrustManagerMoreInformation.cs
- LayoutEvent.cs
- DataBoundLiteralControl.cs
- SetStoryboardSpeedRatio.cs
- EventPropertyMap.cs
- VisualTreeFlattener.cs
- HorizontalAlignConverter.cs
- ParameterCollection.cs
- TracePayload.cs
- XmlSecureResolver.cs
- OleDbCommandBuilder.cs
- WindowPattern.cs
- StructuredTypeInfo.cs
- AutoResetEvent.cs