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
- RootBuilder.cs
- Int32Rect.cs
- XmlParserContext.cs
- SafeArrayRankMismatchException.cs
- GlyphCollection.cs
- DataViewSetting.cs
- ComNativeDescriptor.cs
- SmiEventSink_Default.cs
- WhitespaceRule.cs
- UTF7Encoding.cs
- AutomationPropertyInfo.cs
- AutomationAttributeInfo.cs
- PartialTrustHelpers.cs
- ExceptionValidationRule.cs
- UriExt.cs
- SqlConnectionFactory.cs
- DBProviderConfigurationHandler.cs
- _ChunkParse.cs
- SystemWebExtensionsSectionGroup.cs
- PeerResolverMode.cs
- InteropBitmapSource.cs
- DependencyObjectPropertyDescriptor.cs
- OleDbParameterCollection.cs
- ConfigXmlSignificantWhitespace.cs
- XComponentModel.cs
- LoadRetryHandler.cs
- WorkflowRuntimeServiceElementCollection.cs
- ComplexPropertyEntry.cs
- DoubleLink.cs
- InputBindingCollection.cs
- XmlDataSourceView.cs
- MessageVersion.cs
- ListViewAutomationPeer.cs
- Container.cs
- TraceShell.cs
- _NestedMultipleAsyncResult.cs
- XamlGridLengthSerializer.cs
- ClipboardProcessor.cs
- ToolZoneDesigner.cs
- IntellisenseTextBox.designer.cs
- DbParameterCollectionHelper.cs
- ping.cs
- DataViewManagerListItemTypeDescriptor.cs
- ForeignKeyConstraint.cs
- MatchingStyle.cs
- TreePrinter.cs
- DesignerWithHeader.cs
- BuildManagerHost.cs
- ErrorWebPart.cs
- HttpRequestCacheValidator.cs
- XmlEncodedRawTextWriter.cs
- AssertSection.cs
- ExpressionStringBuilder.cs
- Choices.cs
- DbUpdateCommandTree.cs
- ViewKeyConstraint.cs
- WindowsFormsSectionHandler.cs
- XmlObjectSerializer.cs
- CompatibleIComparer.cs
- ExecutionPropertyManager.cs
- MessageDispatch.cs
- TypeUtils.cs
- Label.cs
- ProfileSettingsCollection.cs
- Types.cs
- FloaterParagraph.cs
- TextDecorationCollection.cs
- LinqDataSourceDeleteEventArgs.cs
- BaseParaClient.cs
- CellIdBoolean.cs
- EndpointDiscoveryMetadata.cs
- DiagnosticsConfigurationHandler.cs
- GridView.cs
- MemberRestriction.cs
- UInt16.cs
- ApplicationServicesHostFactory.cs
- Queue.cs
- WMIInterop.cs
- IntAverageAggregationOperator.cs
- _Win32.cs
- DrawingGroup.cs
- XslVisitor.cs
- System.Data_BID.cs
- NetCodeGroup.cs
- DateTimeValueSerializerContext.cs
- DoubleKeyFrameCollection.cs
- SpeechDetectedEventArgs.cs
- SubMenuStyleCollectionEditor.cs
- ComponentEditorForm.cs
- BamlLocalizationDictionary.cs
- SkewTransform.cs
- InkPresenterAutomationPeer.cs
- TimeSpan.cs
- ValidationException.cs
- PeerDuplexChannel.cs
- HTMLTextWriter.cs
- BaseCodeDomTreeGenerator.cs
- DateTimeFormat.cs
- SqlComparer.cs
- RepeatInfo.cs