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
- ExpressionConverter.cs
- QueryOperationResponseOfT.cs
- TypeSystemHelpers.cs
- SiteMapNodeItem.cs
- MetabaseServerConfig.cs
- AnonymousIdentificationSection.cs
- Material.cs
- SspiWrapper.cs
- ListViewGroup.cs
- HtmlInputFile.cs
- DropDownList.cs
- StoreContentChangedEventArgs.cs
- WebReferencesBuildProvider.cs
- TransformerInfo.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- HttpCapabilitiesEvaluator.cs
- FixedBufferAttribute.cs
- DetailsViewUpdatedEventArgs.cs
- ActivationServices.cs
- Collection.cs
- CqlQuery.cs
- MetadataPropertyCollection.cs
- BulletedListDesigner.cs
- LinqDataSourceView.cs
- WebConfigurationHost.cs
- TextContainer.cs
- ApplicationBuildProvider.cs
- ActivatableWorkflowsQueryResult.cs
- SequenceDesigner.cs
- Int32Converter.cs
- OleDbException.cs
- DataGridViewRowEventArgs.cs
- MachineKeySection.cs
- Membership.cs
- WinEventQueueItem.cs
- NumberFormatInfo.cs
- RouteParametersHelper.cs
- CalendarDataBindingHandler.cs
- __Error.cs
- RequestCacheEntry.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- DynamicValidatorEventArgs.cs
- LoginCancelEventArgs.cs
- ThicknessConverter.cs
- TableLayoutRowStyleCollection.cs
- DesignSurfaceManager.cs
- XmlDocumentType.cs
- BatchStream.cs
- OutputCacheProfile.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- TreeWalkHelper.cs
- DataGridViewTextBoxCell.cs
- ScalarOps.cs
- EastAsianLunisolarCalendar.cs
- RuntimeArgumentHandle.cs
- ConfigXmlElement.cs
- XmlAttribute.cs
- DataGridViewBindingCompleteEventArgs.cs
- GeometryDrawing.cs
- BaseProcessor.cs
- DataGridBoundColumn.cs
- StringSorter.cs
- OdbcParameterCollection.cs
- SchemaElementDecl.cs
- TypeNameParser.cs
- GlobalizationSection.cs
- BinaryReader.cs
- Button.cs
- CompoundFileDeflateTransform.cs
- FlowDocumentView.cs
- RtType.cs
- WebPartDescriptionCollection.cs
- IsolatedStorageFilePermission.cs
- CaseStatement.cs
- localization.cs
- COAUTHINFO.cs
- BinaryParser.cs
- Serializer.cs
- RoleService.cs
- SessionPageStatePersister.cs
- Missing.cs
- WinEventWrap.cs
- FormatterConverter.cs
- UshortList2.cs
- DataPagerFieldItem.cs
- DnsPermission.cs
- DbMetaDataCollectionNames.cs
- GeometryValueSerializer.cs
- WebPageTraceListener.cs
- NestedContainer.cs
- DrawingBrush.cs
- WebPartManagerDesigner.cs
- OSFeature.cs
- RecordBuilder.cs
- CompositionAdorner.cs
- BatchServiceHost.cs
- SortedList.cs
- _ProxyRegBlob.cs
- SqlServices.cs
- FormConverter.cs