Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / NullReferenceException.cs / 1305376 / NullReferenceException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: NullReferenceException ** ** ** Purpose: Exception class for dereferencing a null reference. ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public class NullReferenceException : SystemException { public NullReferenceException() : base(Environment.GetResourceString("Arg_NullReferenceException")) { SetErrorCode(__HResults.COR_E_NULLREFERENCE); } public NullReferenceException(String message) : base(message) { SetErrorCode(__HResults.COR_E_NULLREFERENCE); } public NullReferenceException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_NULLREFERENCE); } [System.Security.SecuritySafeCritical] // auto-generated protected NullReferenceException(SerializationInfo info, StreamingContext context) : base(info, context) {} } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: NullReferenceException ** ** ** Purpose: Exception class for dereferencing a null reference. ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public class NullReferenceException : SystemException { public NullReferenceException() : base(Environment.GetResourceString("Arg_NullReferenceException")) { SetErrorCode(__HResults.COR_E_NULLREFERENCE); } public NullReferenceException(String message) : base(message) { SetErrorCode(__HResults.COR_E_NULLREFERENCE); } public NullReferenceException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_NULLREFERENCE); } [System.Security.SecuritySafeCritical] // auto-generated protected NullReferenceException(SerializationInfo info, StreamingContext context) : base(info, context) {} } } // 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
- DeferredBinaryDeserializerExtension.cs
- CurrentTimeZone.cs
- FormsAuthenticationModule.cs
- TreeWalker.cs
- ReadOnlyDictionary.cs
- ProxyWebPartConnectionCollection.cs
- CaseStatement.cs
- EventProxy.cs
- Content.cs
- WindowsRichEdit.cs
- CodeDirectoryCompiler.cs
- LocalizationComments.cs
- WebCodeGenerator.cs
- ContractHandle.cs
- StubHelpers.cs
- HScrollProperties.cs
- MemberAccessException.cs
- RadialGradientBrush.cs
- Point3D.cs
- NumberAction.cs
- HtmlFormWrapper.cs
- MonthCalendar.cs
- Polygon.cs
- ToolStripDropDownItem.cs
- ItemCollection.cs
- SqlTriggerContext.cs
- MSG.cs
- ASCIIEncoding.cs
- ExpandCollapseProviderWrapper.cs
- KeyNameIdentifierClause.cs
- Stopwatch.cs
- MemberPath.cs
- DbParameterHelper.cs
- StrongNameKeyPair.cs
- SymDocumentType.cs
- MultiViewDesigner.cs
- SrgsToken.cs
- HttpEncoderUtility.cs
- CriticalHandle.cs
- MarkupExtensionSerializer.cs
- UserPrincipalNameElement.cs
- CannotUnloadAppDomainException.cs
- WrappedIUnknown.cs
- XPathAncestorIterator.cs
- Group.cs
- Operator.cs
- CursorConverter.cs
- ClassData.cs
- RepeaterCommandEventArgs.cs
- ExtenderHelpers.cs
- SpecialFolderEnumConverter.cs
- Connector.xaml.cs
- __TransparentProxy.cs
- CqlErrorHelper.cs
- CodeAttachEventStatement.cs
- SqlConnectionStringBuilder.cs
- SimpleType.cs
- CopyAttributesAction.cs
- Site.cs
- RuntimeArgument.cs
- GeneralTransform3DGroup.cs
- _Rfc2616CacheValidators.cs
- CheckedPointers.cs
- NameValueFileSectionHandler.cs
- IDictionary.cs
- XPathDocument.cs
- PlacementWorkspace.cs
- NavigationExpr.cs
- WMIGenerator.cs
- PackageRelationship.cs
- LinkGrep.cs
- SamlAssertion.cs
- BufferedStream.cs
- TypeLoadException.cs
- UDPClient.cs
- CompilerState.cs
- DataSetUtil.cs
- ObjectDataSourceStatusEventArgs.cs
- Enum.cs
- IndexedGlyphRun.cs
- SynchronizationHandlesCodeDomSerializer.cs
- RegexNode.cs
- IndexerNameAttribute.cs
- WhitespaceReader.cs
- _UriSyntax.cs
- ZoneButton.cs
- Rijndael.cs
- SchemaCollectionPreprocessor.cs
- DataObjectPastingEventArgs.cs
- XmlSchemaSet.cs
- UnknownBitmapDecoder.cs
- ConnectionPointCookie.cs
- ListChangedEventArgs.cs
- HTTPAPI_VERSION.cs
- EditorPartChrome.cs
- TextSimpleMarkerProperties.cs
- Int64Converter.cs
- FrameworkName.cs
- ValidatorCompatibilityHelper.cs
- AssociationSetMetadata.cs