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
- IndividualDeviceConfig.cs
- SqlDataSourceRefreshSchemaForm.cs
- FocusManager.cs
- WindowsEditBox.cs
- cookie.cs
- Privilege.cs
- RequiredAttributeAttribute.cs
- CompilationUtil.cs
- SettingsProperty.cs
- IMembershipProvider.cs
- ArraySegment.cs
- SafeArchiveContext.cs
- XsltArgumentList.cs
- XXXInfos.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- DynamicControl.cs
- FrameworkPropertyMetadata.cs
- CompareInfo.cs
- ProcessExitedException.cs
- SafeThemeHandle.cs
- BeginStoryboard.cs
- DataGridItemEventArgs.cs
- DesignConnection.cs
- SqlUdtInfo.cs
- FamilyMapCollection.cs
- Completion.cs
- HttpWriter.cs
- PixelFormatConverter.cs
- GridViewUpdateEventArgs.cs
- AdapterSwitches.cs
- ListViewGroupItemCollection.cs
- DataServiceStreamResponse.cs
- ScalarConstant.cs
- processwaithandle.cs
- DBSchemaRow.cs
- SQLChars.cs
- ValidatingReaderNodeData.cs
- CharacterMetrics.cs
- PageParser.cs
- DataServiceKeyAttribute.cs
- XmlSerializer.cs
- diagnosticsswitches.cs
- CriticalFinalizerObject.cs
- SQLInt16.cs
- CheckBoxField.cs
- TableCell.cs
- RecommendedAsConfigurableAttribute.cs
- AutomationPatternInfo.cs
- HeaderUtility.cs
- SynchronizedPool.cs
- PackWebRequest.cs
- FileCodeGroup.cs
- ChtmlTextWriter.cs
- StateMachineWorkflowInstance.cs
- StreamGeometryContext.cs
- DBDataPermission.cs
- IdentityValidationException.cs
- NullableDecimalSumAggregationOperator.cs
- AnonymousIdentificationSection.cs
- ExpandoClass.cs
- LingerOption.cs
- FileIOPermission.cs
- NotImplementedException.cs
- DataContractSerializerFaultFormatter.cs
- DoubleStorage.cs
- SqlDataReaderSmi.cs
- PreviewPageInfo.cs
- ApplicationSecurityManager.cs
- Filter.cs
- CustomLineCap.cs
- TaskFormBase.cs
- RegexCapture.cs
- XmlArrayAttribute.cs
- XamlInt32CollectionSerializer.cs
- DelegateHelpers.cs
- EventLog.cs
- BindableAttribute.cs
- EdmToObjectNamespaceMap.cs
- SqlFunctionAttribute.cs
- TcpConnectionPoolSettingsElement.cs
- MethodExpr.cs
- AnonymousIdentificationModule.cs
- MethodCallConverter.cs
- _FtpDataStream.cs
- DescendantBaseQuery.cs
- LateBoundBitmapDecoder.cs
- IList.cs
- ServiceHostingEnvironment.cs
- UnsafeNativeMethods.cs
- AudioFormatConverter.cs
- MultipartIdentifier.cs
- LinkArea.cs
- ListBoxItem.cs
- CompositeCollection.cs
- SqlTransaction.cs
- ColumnPropertiesGroup.cs
- SizeLimitedCache.cs
- StylusEditingBehavior.cs
- InternalUserCancelledException.cs
- WorkflowQueuingService.cs