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
- MetaType.cs
- ObjectDataSourceView.cs
- XmlHierarchicalEnumerable.cs
- ZipPackage.cs
- XmlSchemaGroupRef.cs
- SafeSystemMetrics.cs
- DoubleAverageAggregationOperator.cs
- MimeMultiPart.cs
- GeometryGroup.cs
- XmlEventCache.cs
- EdmValidator.cs
- FontStyles.cs
- CommandDevice.cs
- ReadContentAsBinaryHelper.cs
- OleDbConnectionFactory.cs
- GcSettings.cs
- ISCIIEncoding.cs
- OperatingSystemVersionCheck.cs
- MetadataProperty.cs
- OutOfProcStateClientManager.cs
- RowTypePropertyElement.cs
- IntegrationExceptionEventArgs.cs
- BinaryParser.cs
- SystemWebCachingSectionGroup.cs
- ProfileGroupSettingsCollection.cs
- GcSettings.cs
- FamilyMapCollection.cs
- DataGridState.cs
- ParallelSeparator.xaml.cs
- Range.cs
- MetadataProperty.cs
- ProfileBuildProvider.cs
- DoubleCollection.cs
- PageBuildProvider.cs
- CachingParameterInspector.cs
- LocalIdCollection.cs
- MetabaseServerConfig.cs
- XsltConvert.cs
- SqlConnectionStringBuilder.cs
- TraceProvider.cs
- XmlWrappingReader.cs
- InternalSafeNativeMethods.cs
- XmlQualifiedName.cs
- WindowsUpDown.cs
- CapabilitiesRule.cs
- SessionStateUtil.cs
- CodeCatchClauseCollection.cs
- XmlParserContext.cs
- MetadataProperty.cs
- Utils.cs
- _FixedSizeReader.cs
- Vector3DKeyFrameCollection.cs
- CaseExpr.cs
- WmpBitmapEncoder.cs
- TabItem.cs
- MenuAdapter.cs
- ClickablePoint.cs
- SequenceFullException.cs
- ClusterRegistryConfigurationProvider.cs
- CodeDomDecompiler.cs
- odbcmetadatacollectionnames.cs
- SchemaMapping.cs
- XmlUtilWriter.cs
- Gdiplus.cs
- IgnoreFlushAndCloseStream.cs
- SQLChars.cs
- XmlSchemas.cs
- ListViewDeleteEventArgs.cs
- HtmlEncodedRawTextWriter.cs
- EventLogQuery.cs
- FilterElement.cs
- XmlWellformedWriter.cs
- DuplicateMessageDetector.cs
- DataGridHeaderBorder.cs
- FontClient.cs
- VisualStateGroup.cs
- Debug.cs
- SafeNativeHandle.cs
- ExpressionVisitor.cs
- TableItemStyle.cs
- HtmlTableRow.cs
- MediaContext.cs
- PingOptions.cs
- CqlLexerHelpers.cs
- SqlCacheDependencyDatabase.cs
- XmlSubtreeReader.cs
- InputScopeManager.cs
- IndexedEnumerable.cs
- TraceSource.cs
- PrimarySelectionGlyph.cs
- ProviderSettings.cs
- ColorMatrix.cs
- SqlNodeAnnotation.cs
- Point3DConverter.cs
- PropertyTab.cs
- EnterpriseServicesHelper.cs
- RoleManagerModule.cs
- UdpTransportSettings.cs
- InterleavedZipPartStream.cs
- ParseNumbers.cs