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
- WindowsTreeView.cs
- HebrewCalendar.cs
- ChangeTracker.cs
- TypeListConverter.cs
- IList.cs
- TemplateApplicationHelper.cs
- DescendantBaseQuery.cs
- Array.cs
- DelegateTypeInfo.cs
- TCEAdapterGenerator.cs
- ComboBox.cs
- EasingKeyFrames.cs
- CookielessHelper.cs
- PrintController.cs
- LogicalExpr.cs
- FixedSOMPageConstructor.cs
- Metafile.cs
- HitTestResult.cs
- FatalException.cs
- SqlWebEventProvider.cs
- ProgressBarAutomationPeer.cs
- RegexStringValidator.cs
- SqlBooleanMismatchVisitor.cs
- formatstringdialog.cs
- SecurityPolicySection.cs
- XPathDescendantIterator.cs
- WaitHandle.cs
- XmlCDATASection.cs
- SplineQuaternionKeyFrame.cs
- future.cs
- CharacterString.cs
- ExtractorMetadata.cs
- JsonFormatWriterGenerator.cs
- EmptyStringExpandableObjectConverter.cs
- DataListItem.cs
- TypeSystemHelpers.cs
- LockedAssemblyCache.cs
- Itemizer.cs
- SubordinateTransaction.cs
- MarkupCompiler.cs
- KeyMatchBuilder.cs
- XmlSchemaObject.cs
- RpcAsyncResult.cs
- StringFunctions.cs
- SpecularMaterial.cs
- ProviderBase.cs
- DependencyPropertyHelper.cs
- HttpCapabilitiesEvaluator.cs
- MatrixValueSerializer.cs
- XamlTypeMapper.cs
- ArrayHelper.cs
- DataGridViewImageColumn.cs
- StreamResourceInfo.cs
- HostVisual.cs
- Stack.cs
- ElementHost.cs
- InvokeWebServiceDesigner.cs
- GenericTextProperties.cs
- DataGridViewCellValidatingEventArgs.cs
- ExtensionSimplifierMarkupObject.cs
- WinCategoryAttribute.cs
- SplineQuaternionKeyFrame.cs
- httpserverutility.cs
- ReadOnlyDictionary.cs
- SqlCommandBuilder.cs
- TextEditorSpelling.cs
- BaseDataBoundControl.cs
- ClassicBorderDecorator.cs
- KeyValueInternalCollection.cs
- DbUpdateCommandTree.cs
- EntityWithKeyStrategy.cs
- ChannelBinding.cs
- mediaeventshelper.cs
- SynchronizationContext.cs
- ScrollEvent.cs
- NavigationPropertyEmitter.cs
- RectangleConverter.cs
- ManagedWndProcTracker.cs
- SignatureToken.cs
- ExtensionQuery.cs
- ISFClipboardData.cs
- DataSourceGroupCollection.cs
- UseAttributeSetsAction.cs
- SQLDateTime.cs
- RowToParametersTransformer.cs
- complextypematerializer.cs
- TraceEventCache.cs
- ScrollPattern.cs
- PassportAuthenticationModule.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- StringUtil.cs
- followingquery.cs
- SspiWrapper.cs
- LogicalTreeHelper.cs
- ValueConversionAttribute.cs
- XmlCountingReader.cs
- CodeMemberField.cs
- FileLoadException.cs
- QuadraticEase.cs
- ConfigurationSchemaErrors.cs