Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ResourceDisplayNameAttribute.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ContractMethodInfo.cs
- RuntimeEnvironment.cs
- RadioButtonPopupAdapter.cs
- LocatorGroup.cs
- TabControlEvent.cs
- CharEnumerator.cs
- RequiredFieldValidator.cs
- ClientScriptManagerWrapper.cs
- BehaviorEditorPart.cs
- ZipIORawDataFileBlock.cs
- KeyEvent.cs
- BatchWriter.cs
- CDSsyncETWBCLProvider.cs
- DataControlField.cs
- InvalidAsynchronousStateException.cs
- SafeFindHandle.cs
- EncryptedPackage.cs
- SecurityDescriptor.cs
- NameValueFileSectionHandler.cs
- DataBindingExpressionBuilder.cs
- LinearGradientBrush.cs
- RenderData.cs
- OleDbSchemaGuid.cs
- Pkcs7Recipient.cs
- XpsS0ValidatingLoader.cs
- ClientConfigPaths.cs
- BaseComponentEditor.cs
- WebPartEditVerb.cs
- TreeViewAutomationPeer.cs
- WSHttpBinding.cs
- GrammarBuilderRuleRef.cs
- TraceSection.cs
- MustUnderstandBehavior.cs
- SamlAction.cs
- ObjectNotFoundException.cs
- WindowsPrincipal.cs
- PluralizationServiceUtil.cs
- DesigntimeLicenseContextSerializer.cs
- WSUtilitySpecificationVersion.cs
- SyndicationItem.cs
- Script.cs
- HandleCollector.cs
- CompiledRegexRunnerFactory.cs
- messageonlyhwndwrapper.cs
- QilExpression.cs
- ListViewDeleteEventArgs.cs
- MultipleViewProviderWrapper.cs
- ProcessInfo.cs
- DomNameTable.cs
- FontWeightConverter.cs
- MimeWriter.cs
- XamlWriter.cs
- ImageDrawing.cs
- TabletDevice.cs
- DesignerToolStripControlHost.cs
- NonSerializedAttribute.cs
- TimelineCollection.cs
- StrokeCollection.cs
- AuthenticationManager.cs
- HitTestWithGeometryDrawingContextWalker.cs
- FilterableAttribute.cs
- TypeConvertions.cs
- XPathAncestorIterator.cs
- PropertyGridView.cs
- PolicyVersion.cs
- PointHitTestParameters.cs
- AnyAllSearchOperator.cs
- CodeAccessSecurityEngine.cs
- ConstrainedDataObject.cs
- XmlChoiceIdentifierAttribute.cs
- DBSqlParser.cs
- CqlErrorHelper.cs
- SafeLocalAllocation.cs
- RegexRunnerFactory.cs
- oledbmetadatacollectionnames.cs
- CodeMethodReturnStatement.cs
- SqlCaseSimplifier.cs
- Stylus.cs
- AutomationElementIdentifiers.cs
- PrimitiveXmlSerializers.cs
- XmlCustomFormatter.cs
- ContainerSelectorBehavior.cs
- PropertyContainer.cs
- DrawingContextWalker.cs
- ContractAdapter.cs
- DataRowIndexBuffer.cs
- KeyBinding.cs
- TextEditor.cs
- TryCatchDesigner.xaml.cs
- Margins.cs
- DoWhileDesigner.xaml.cs
- DataProtection.cs
- SystemIPAddressInformation.cs
- Variant.cs
- ComponentCommands.cs
- MimeParameter.cs
- DetailsViewUpdatedEventArgs.cs
- SqlCommandSet.cs