Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DataSourceHelper.cs
- NodeCounter.cs
- XmlSchemaImport.cs
- Handle.cs
- SecurityAlgorithmSuite.cs
- BaseAsyncResult.cs
- Cursor.cs
- FileSystemInfo.cs
- PersonalizationProviderCollection.cs
- FrameworkContentElement.cs
- XmlCharacterData.cs
- DelimitedListTraceListener.cs
- ContentIterators.cs
- Expression.DebuggerProxy.cs
- CircleHotSpot.cs
- CodeNamespaceCollection.cs
- WebPartZoneCollection.cs
- FileNotFoundException.cs
- EditorOptionAttribute.cs
- WebScriptMetadataFormatter.cs
- UnitySerializationHolder.cs
- ParserStack.cs
- GlobalizationAssembly.cs
- XPathScanner.cs
- AvtEvent.cs
- ProtocolsConfigurationEntry.cs
- TableHeaderCell.cs
- SessionStateModule.cs
- WebHttpDispatchOperationSelectorData.cs
- BitFlagsGenerator.cs
- DataDocumentXPathNavigator.cs
- SQLSingle.cs
- TextRangeProviderWrapper.cs
- HttpRuntimeSection.cs
- JapaneseLunisolarCalendar.cs
- UnsafeNativeMethods.cs
- ProxySimple.cs
- XamlStream.cs
- CharUnicodeInfo.cs
- ScriptingRoleServiceSection.cs
- sqlmetadatafactory.cs
- AssemblyCollection.cs
- NonVisualControlAttribute.cs
- DocobjHost.cs
- RuntimeConfig.cs
- UInt16Converter.cs
- Brushes.cs
- EmbeddedMailObject.cs
- WindowsScrollBar.cs
- WindowsButton.cs
- Menu.cs
- _WebProxyDataBuilder.cs
- Dictionary.cs
- DataGridCaption.cs
- BulletedListEventArgs.cs
- DoubleStorage.cs
- WebBrowserPermission.cs
- MenuItemBinding.cs
- Margins.cs
- ExpressionEditor.cs
- MessageVersion.cs
- validationstate.cs
- SqlUtils.cs
- RadioButtonPopupAdapter.cs
- XmlByteStreamReader.cs
- InstancePersistenceContext.cs
- MaterialGroup.cs
- UniqueEventHelper.cs
- IPEndPointCollection.cs
- AtomEntry.cs
- ExtendedProtectionPolicyTypeConverter.cs
- ClientBuildManager.cs
- SoapHeaderAttribute.cs
- CollectionBuilder.cs
- _ChunkParse.cs
- RelatedCurrencyManager.cs
- Rectangle.cs
- ProxyHwnd.cs
- MD5CryptoServiceProvider.cs
- ColumnMap.cs
- X509IssuerSerialKeyIdentifierClause.cs
- EnumValidator.cs
- Animatable.cs
- DataSourceView.cs
- Debug.cs
- ListBox.cs
- MouseEventArgs.cs
- NameValueCollection.cs
- AspCompat.cs
- DataMemberFieldEditor.cs
- MenuAutomationPeer.cs
- SelectedDatesCollection.cs
- GridToolTip.cs
- TabControlEvent.cs
- GridViewRowPresenterBase.cs
- EntityReference.cs
- SystemIPInterfaceStatistics.cs
- TextStore.cs
- Matrix.cs
- DPCustomTypeDescriptor.cs