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
- GeneralTransformGroup.cs
- BamlBinaryReader.cs
- GeometryModel3D.cs
- LiteralLink.cs
- TemplateControlParser.cs
- QuaternionRotation3D.cs
- LinkUtilities.cs
- PnrpPermission.cs
- XpsInterleavingPolicy.cs
- BamlStream.cs
- GroupBox.cs
- ProfilePropertySettingsCollection.cs
- InlineUIContainer.cs
- TemplateComponentConnector.cs
- FontInfo.cs
- MemberInfoSerializationHolder.cs
- BypassElementCollection.cs
- ContextBase.cs
- UIPropertyMetadata.cs
- TextBlockAutomationPeer.cs
- InvokeGenerator.cs
- SecurityPolicySection.cs
- XmlFormatExtensionAttribute.cs
- ObsoleteAttribute.cs
- DataGridItemEventArgs.cs
- MenuItemBinding.cs
- OracleFactory.cs
- UserNamePasswordValidationMode.cs
- DataColumnPropertyDescriptor.cs
- _LoggingObject.cs
- SecurityDocument.cs
- GridViewRowEventArgs.cs
- TextTreeInsertUndoUnit.cs
- WebServiceResponseDesigner.cs
- DynamicEntity.cs
- Point.cs
- ColorAnimationBase.cs
- PlatformNotSupportedException.cs
- XmlWriterDelegator.cs
- SqlCommand.cs
- SqlBooleanMismatchVisitor.cs
- Registry.cs
- Dispatcher.cs
- FontFaceLayoutInfo.cs
- OutputScopeManager.cs
- XmlDataProvider.cs
- WindowsAuthenticationModule.cs
- PropertyInfoSet.cs
- nulltextcontainer.cs
- BCLDebug.cs
- DataControlButton.cs
- ExtentKey.cs
- ProgressChangedEventArgs.cs
- DefaultSerializationProviderAttribute.cs
- XmlSchemaType.cs
- SqlXml.cs
- LogicalTreeHelper.cs
- SigningCredentials.cs
- DbParameterCollection.cs
- SmiMetaData.cs
- LinqDataSourceValidationException.cs
- ObjectQuery.cs
- ConfigXmlElement.cs
- InitializationEventAttribute.cs
- WizardDesigner.cs
- TextTreeExtractElementUndoUnit.cs
- XmlIlVisitor.cs
- ReverseQueryOperator.cs
- CombinedGeometry.cs
- SafeThemeHandle.cs
- RoleExceptions.cs
- Int32Animation.cs
- XmlSchemaSimpleContentRestriction.cs
- WhitespaceSignificantCollectionAttribute.cs
- HttpGetServerProtocol.cs
- PerformanceCounterCategory.cs
- XPathArrayIterator.cs
- ByteRangeDownloader.cs
- MemoryMappedViewAccessor.cs
- GeometryModel3D.cs
- LoginAutoFormat.cs
- FrameworkElement.cs
- DetailsViewPagerRow.cs
- PenContext.cs
- RuleConditionDialog.Designer.cs
- DefaultValidator.cs
- EtwTrace.cs
- FamilyMapCollection.cs
- MonthCalendarDesigner.cs
- TransactionFilter.cs
- ModelFunctionTypeElement.cs
- RadioButton.cs
- ServiceOperationWrapper.cs
- XsdBuilder.cs
- ByteBufferPool.cs
- UriSection.cs
- AssociationSetMetadata.cs
- BinaryFormatterWriter.cs
- DebugController.cs
- WindowsProgressbar.cs