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
- linebase.cs
- UnmanagedMemoryAccessor.cs
- MediaScriptCommandRoutedEventArgs.cs
- PolicyLevel.cs
- AudioStateChangedEventArgs.cs
- DSASignatureFormatter.cs
- VirtualPathUtility.cs
- SubclassTypeValidator.cs
- ShadowGlyph.cs
- CodeSnippetCompileUnit.cs
- SqlDataReaderSmi.cs
- ContentPresenter.cs
- CollectionContainer.cs
- HttpFileCollection.cs
- DataControlCommands.cs
- TextEditorMouse.cs
- Point.cs
- objectquery_tresulttype.cs
- JavaScriptObjectDeserializer.cs
- AsyncCompletedEventArgs.cs
- OracleCommand.cs
- ControlDesignerState.cs
- DesignerImageAdapter.cs
- ToolStripDesignerAvailabilityAttribute.cs
- DataQuery.cs
- DeclarationUpdate.cs
- AuthenticodeSignatureInformation.cs
- Lookup.cs
- DataTableReader.cs
- XmlName.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- TraceShell.cs
- MdiWindowListItemConverter.cs
- ListControlConvertEventArgs.cs
- SymbolDocumentGenerator.cs
- SoapObjectInfo.cs
- SimpleHandlerBuildProvider.cs
- PolyBezierSegmentFigureLogic.cs
- ForeignKeyFactory.cs
- TailCallAnalyzer.cs
- ConfigurationSectionGroup.cs
- SettingsPropertyCollection.cs
- __ComObject.cs
- DataGridViewSelectedColumnCollection.cs
- Roles.cs
- TransformerInfoCollection.cs
- ComboBoxAutomationPeer.cs
- BitHelper.cs
- InternalBufferOverflowException.cs
- GlyphManager.cs
- ActiveDocumentEvent.cs
- ListBoxAutomationPeer.cs
- BezierSegment.cs
- SimpleBitVector32.cs
- CodeTypeDelegate.cs
- ReflectEventDescriptor.cs
- SystemEvents.cs
- CounterCreationDataConverter.cs
- GlyphRun.cs
- CollectionViewSource.cs
- XmlException.cs
- AnalyzedTree.cs
- Brush.cs
- OrderByQueryOptionExpression.cs
- XmlIgnoreAttribute.cs
- X509Chain.cs
- UnsafeNetInfoNativeMethods.cs
- CompilationPass2TaskInternal.cs
- GridViewAutomationPeer.cs
- MouseEvent.cs
- UserPersonalizationStateInfo.cs
- ServicePoint.cs
- Transform3DCollection.cs
- XPathBinder.cs
- EditorPartCollection.cs
- CompareValidator.cs
- OpenTypeLayout.cs
- Keywords.cs
- OrCondition.cs
- MsmqEncryptionAlgorithm.cs
- BookmarkUndoUnit.cs
- RadioButtonList.cs
- MobileFormsAuthentication.cs
- PolyLineSegmentFigureLogic.cs
- StretchValidation.cs
- UnsafeNativeMethods.cs
- FontStyles.cs
- XomlCompilerError.cs
- TimeSpan.cs
- BehaviorEditorPart.cs
- HitTestFilterBehavior.cs
- SystemException.cs
- BindToObject.cs
- WrapPanel.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- DateTimeUtil.cs
- _FtpDataStream.cs
- PerformanceCounterPermissionAttribute.cs
- SafeNativeMethods.cs
- GenericAuthenticationEventArgs.cs