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
- BitConverter.cs
- ItemsControl.cs
- SpellerHighlightLayer.cs
- SignatureHelper.cs
- LinkUtilities.cs
- DataGridCellEditEndingEventArgs.cs
- DataGridTableCollection.cs
- ProxyManager.cs
- FusionWrap.cs
- DependsOnAttribute.cs
- BindingsCollection.cs
- WebBrowserHelper.cs
- ViewUtilities.cs
- BrowserTree.cs
- QuaternionConverter.cs
- SoapFault.cs
- namescope.cs
- MethodBody.cs
- HyperlinkAutomationPeer.cs
- FormViewAutoFormat.cs
- ExceptionUtil.cs
- ProxyGenerationError.cs
- FrameworkContextData.cs
- ConvertBinder.cs
- IndexedEnumerable.cs
- SmtpFailedRecipientException.cs
- InnerItemCollectionView.cs
- CompilationRelaxations.cs
- CodeCompileUnit.cs
- XmlAttributes.cs
- DataGridViewCellCancelEventArgs.cs
- LineVisual.cs
- Point4DConverter.cs
- EdmSchemaError.cs
- TimelineGroup.cs
- TextPenaltyModule.cs
- XmlReflectionImporter.cs
- BlockCollection.cs
- AssemblyBuilder.cs
- DateTimePicker.cs
- COM2ExtendedUITypeEditor.cs
- EventTrigger.cs
- RowToFieldTransformer.cs
- OpenTypeCommon.cs
- _NegoStream.cs
- OleDbDataReader.cs
- RowType.cs
- Rect.cs
- SafeBitVector32.cs
- SvcMapFile.cs
- CategoryEditor.cs
- HtmlButton.cs
- DetailsViewDeletedEventArgs.cs
- WebResourceAttribute.cs
- TextInfo.cs
- RegionIterator.cs
- BinaryCommonClasses.cs
- SpecularMaterial.cs
- ScalarType.cs
- log.cs
- HashFinalRequest.cs
- DrawingContextWalker.cs
- Tag.cs
- GuidConverter.cs
- WorkflowViewManager.cs
- Stackframe.cs
- MethodImplAttribute.cs
- OleDbMetaDataFactory.cs
- ModelUIElement3D.cs
- ChannelBase.cs
- EmulateRecognizeCompletedEventArgs.cs
- XPathNode.cs
- NativeObjectSecurity.cs
- TreeSet.cs
- ReverseInheritProperty.cs
- Html32TextWriter.cs
- TagNameToTypeMapper.cs
- SymbolPair.cs
- _StreamFramer.cs
- PropertyInfoSet.cs
- NullableFloatMinMaxAggregationOperator.cs
- PerfService.cs
- BuildManager.cs
- XPathItem.cs
- GraphicsState.cs
- HasCopySemanticsAttribute.cs
- HttpCacheVaryByContentEncodings.cs
- SiteMapNodeItem.cs
- WindowsGraphicsCacheManager.cs
- TraceRecords.cs
- WizardPanel.cs
- InputScopeNameConverter.cs
- FontFamily.cs
- X509CertificateClaimSet.cs
- _Connection.cs
- ImageCodecInfo.cs
- SystemIPInterfaceStatistics.cs
- TokenBasedSetEnumerator.cs
- SortedDictionary.cs
- MethodToken.cs