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
- CompilationUtil.cs
- CellLabel.cs
- AddInActivator.cs
- TextEvent.cs
- TextEditor.cs
- RegexWriter.cs
- HtmlPhoneCallAdapter.cs
- ProcessModelInfo.cs
- ModelUtilities.cs
- Flowchart.cs
- KerberosSecurityTokenProvider.cs
- APCustomTypeDescriptor.cs
- XmlLangPropertyAttribute.cs
- StrongTypingException.cs
- SqlCommandSet.cs
- RelationalExpressions.cs
- StrokeRenderer.cs
- Attributes.cs
- HttpContext.cs
- DataGridViewCellConverter.cs
- MetadataArtifactLoader.cs
- DataGridViewComboBoxColumn.cs
- OleAutBinder.cs
- Track.cs
- OdbcReferenceCollection.cs
- ListBindableAttribute.cs
- LocalValueEnumerator.cs
- ModifierKeysConverter.cs
- MetadataItemSerializer.cs
- WebPartTransformerAttribute.cs
- PinnedBufferMemoryStream.cs
- MatrixTransform.cs
- SchemaConstraints.cs
- HandlerFactoryCache.cs
- _ShellExpression.cs
- ReaderOutput.cs
- WebControlParameterProxy.cs
- SpeechUI.cs
- PathFigureCollectionConverter.cs
- RtfNavigator.cs
- PageAsyncTaskManager.cs
- TraceData.cs
- GeneralTransform.cs
- XamlFigureLengthSerializer.cs
- basenumberconverter.cs
- DataListItemEventArgs.cs
- CompletionProxy.cs
- Stack.cs
- TimeoutValidationAttribute.cs
- validationstate.cs
- TypedDataSourceCodeGenerator.cs
- HttpResponseInternalWrapper.cs
- XPathMultyIterator.cs
- Table.cs
- Partitioner.cs
- IRCollection.cs
- LicenseException.cs
- Utils.cs
- Processor.cs
- WindowsGraphics2.cs
- ToolboxItemAttribute.cs
- CodePageEncoding.cs
- TextTreeObjectNode.cs
- WindowExtensionMethods.cs
- CompoundFileDeflateTransform.cs
- Debugger.cs
- PrefixQName.cs
- MeshGeometry3D.cs
- InProcStateClientManager.cs
- PenThread.cs
- _StreamFramer.cs
- EnvelopeVersion.cs
- OdbcCommandBuilder.cs
- PageOrientation.cs
- TrayIconDesigner.cs
- SaveWorkflowAsyncResult.cs
- StringConverter.cs
- WhitespaceSignificantCollectionAttribute.cs
- SharedUtils.cs
- ColorDialog.cs
- ItemsPanelTemplate.cs
- RelationshipConverter.cs
- AccessViolationException.cs
- FileEnumerator.cs
- ModelPropertyDescriptor.cs
- DataGridViewBindingCompleteEventArgs.cs
- TypePropertyEditor.cs
- WindowsAltTab.cs
- ProxySimple.cs
- RegexCompiler.cs
- Faults.cs
- SchemaTypeEmitter.cs
- CodePageEncoding.cs
- Convert.cs
- PolicyManager.cs
- TargetInvocationException.cs
- SoapServerMethod.cs
- odbcmetadatacolumnnames.cs
- DbProviderFactory.cs
- ReliableOutputConnection.cs