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
- FormsAuthentication.cs
- LocationSectionRecord.cs
- COMException.cs
- PasswordTextNavigator.cs
- IERequestCache.cs
- EntityDataSourceMemberPath.cs
- PersistNameAttribute.cs
- DiscoveryMessageSequenceGenerator.cs
- InvariantComparer.cs
- ZipIOBlockManager.cs
- XmlEnumAttribute.cs
- WebPartHeaderCloseVerb.cs
- AddDataControlFieldDialog.cs
- Match.cs
- ListItemCollection.cs
- TimelineGroup.cs
- GeneralTransform3DGroup.cs
- TemplateControlCodeDomTreeGenerator.cs
- XmlILIndex.cs
- GPPOINT.cs
- Formatter.cs
- PolicyException.cs
- BamlResourceDeserializer.cs
- Rect.cs
- SqlRetyper.cs
- BitmapInitialize.cs
- SystemResourceKey.cs
- CultureSpecificCharacterBufferRange.cs
- WindowsScrollBarBits.cs
- QueryContinueDragEventArgs.cs
- CheckBoxFlatAdapter.cs
- MonitorWrapper.cs
- GenericXmlSecurityTokenAuthenticator.cs
- KeyedHashAlgorithm.cs
- Timeline.cs
- WebServiceErrorEvent.cs
- SHA512.cs
- BindingValueChangedEventArgs.cs
- CompositeDuplexElement.cs
- MasterPageParser.cs
- WebPartMenu.cs
- StopStoryboard.cs
- Crc32.cs
- SimpleType.cs
- SqlUnionizer.cs
- RouteItem.cs
- Funcletizer.cs
- ObjectDataSourceFilteringEventArgs.cs
- GZipDecoder.cs
- MergeFailedEvent.cs
- ProfileModule.cs
- DragEventArgs.cs
- PopupRootAutomationPeer.cs
- XhtmlBasicTextBoxAdapter.cs
- MsmqSecureHashAlgorithm.cs
- BindingListCollectionView.cs
- TimeSpanConverter.cs
- DrawingContext.cs
- StickyNote.cs
- QueryInterceptorAttribute.cs
- DbConnectionPoolIdentity.cs
- NonParentingControl.cs
- FileChangesMonitor.cs
- BitmapEffectGeneralTransform.cs
- ToolboxControl.cs
- MachineKeyConverter.cs
- QueryOutputWriter.cs
- GradientStop.cs
- UnhandledExceptionEventArgs.cs
- TemplateKeyConverter.cs
- columnmapkeybuilder.cs
- DefaultPropertiesToSend.cs
- NameValueFileSectionHandler.cs
- SchemaConstraints.cs
- MenuBase.cs
- FormViewDeleteEventArgs.cs
- BreakSafeBase.cs
- InkCanvasSelection.cs
- SiteMapNodeItem.cs
- XsdValidatingReader.cs
- ToolStripDropDownItem.cs
- COSERVERINFO.cs
- ThreadStaticAttribute.cs
- SharedUtils.cs
- XmlSchemaChoice.cs
- OdbcDataAdapter.cs
- MetadataArtifactLoaderComposite.cs
- WebConfigurationHostFileChange.cs
- TextParagraphView.cs
- LayoutSettings.cs
- SudsParser.cs
- storagemappingitemcollection.viewdictionary.cs
- FormsAuthentication.cs
- coordinator.cs
- TimeZoneNotFoundException.cs
- SmiConnection.cs
- GeometryModel3D.cs
- Registry.cs
- ActivityTypeCodeDomSerializer.cs
- UserNamePasswordServiceCredential.cs