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
- EntityClassGenerator.cs
- SmtpDigestAuthenticationModule.cs
- PartialList.cs
- ComponentChangingEvent.cs
- Nullable.cs
- Binding.cs
- Viewport2DVisual3D.cs
- FusionWrap.cs
- SourceElementsCollection.cs
- PrintingPermissionAttribute.cs
- StringExpressionSet.cs
- HtmlTableRow.cs
- FilterQuery.cs
- TextRange.cs
- Exception.cs
- PointHitTestResult.cs
- MainMenu.cs
- CodeGenerator.cs
- ComponentChangingEvent.cs
- BitmapEffectvisualstate.cs
- EditorPart.cs
- ServiceDesigner.cs
- AddInDeploymentState.cs
- Content.cs
- TraceAsyncResult.cs
- HttpCapabilitiesEvaluator.cs
- StateMachineSubscriptionManager.cs
- AsymmetricKeyExchangeDeformatter.cs
- JsonReaderDelegator.cs
- TextEndOfSegment.cs
- WebPartCloseVerb.cs
- ToolBarButton.cs
- PerfCounterSection.cs
- EnumerableValidator.cs
- SectionVisual.cs
- SynchronizedInputAdaptor.cs
- TextEffectResolver.cs
- DataGridViewTextBoxEditingControl.cs
- RuntimeConfig.cs
- LazyTextWriterCreator.cs
- ProviderIncompatibleException.cs
- ApplicationContext.cs
- FtpCachePolicyElement.cs
- Math.cs
- MediaScriptCommandRoutedEventArgs.cs
- DateBoldEvent.cs
- XmlWriterTraceListener.cs
- EventLogPropertySelector.cs
- RangeEnumerable.cs
- MaskDescriptor.cs
- EntityProviderFactory.cs
- XmlRawWriter.cs
- SafeHandle.cs
- CancelEventArgs.cs
- BitmapEffectrendercontext.cs
- Debugger.cs
- PlainXmlWriter.cs
- PartitionResolver.cs
- RadioButtonList.cs
- ParenthesizePropertyNameAttribute.cs
- baseaxisquery.cs
- RegexWriter.cs
- sqlinternaltransaction.cs
- InternalPolicyElement.cs
- DataTable.cs
- FilteredReadOnlyMetadataCollection.cs
- HelpProvider.cs
- LinqDataSource.cs
- XmlSchemaSimpleTypeList.cs
- altserialization.cs
- ThicknessAnimation.cs
- PingOptions.cs
- InheritanceContextHelper.cs
- ToolStripItemRenderEventArgs.cs
- WpfSharedBamlSchemaContext.cs
- LinkButton.cs
- RequestUriProcessor.cs
- BitConverter.cs
- FormsAuthenticationUser.cs
- _Connection.cs
- ObjectToModelValueConverter.cs
- DataGridTableStyleMappingNameEditor.cs
- ISSmlParser.cs
- WizardStepBase.cs
- SqlDataRecord.cs
- ScrollViewerAutomationPeer.cs
- CasesDictionary.cs
- CodeSnippetTypeMember.cs
- BamlResourceDeserializer.cs
- ViewBox.cs
- MachineSettingsSection.cs
- EventArgs.cs
- WinEventQueueItem.cs
- MetaModel.cs
- PolyLineSegmentFigureLogic.cs
- TemplateBindingExpression.cs
- TransformationRules.cs
- PageRanges.cs
- DataMemberListEditor.cs
- EdmConstants.cs