Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / NullReferenceException.cs / 1 / 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);
}
protected NullReferenceException(SerializationInfo info, StreamingContext context) : base(info, context) {}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SharedPersonalizationStateInfo.cs
- ProfileManager.cs
- PropertyDescriptorComparer.cs
- BitVec.cs
- ReflectionUtil.cs
- UnmanagedMemoryStreamWrapper.cs
- XmlParser.cs
- ArcSegment.cs
- HorizontalAlignConverter.cs
- ObjectListFieldsPage.cs
- HelpKeywordAttribute.cs
- DefaultEventAttribute.cs
- AbsoluteQuery.cs
- WindowsListViewGroupHelper.cs
- XmlAnyElementAttributes.cs
- RtType.cs
- XmlSchemaObjectCollection.cs
- ToolStripHighContrastRenderer.cs
- EventProviderTraceListener.cs
- CanExecuteRoutedEventArgs.cs
- DescriptionAttribute.cs
- TextWriterTraceListener.cs
- SoundPlayer.cs
- HtmlCommandAdapter.cs
- xmlsaver.cs
- FixedHyperLink.cs
- SelectionManager.cs
- DataGridBeginningEditEventArgs.cs
- WebPartCollection.cs
- TemplateParser.cs
- XmlnsDictionary.cs
- TogglePattern.cs
- SetIndexBinder.cs
- SpeechDetectedEventArgs.cs
- TransactionFilter.cs
- PopOutPanel.cs
- DiscoveryMessageSequence.cs
- WindowsListViewSubItem.cs
- MetafileHeader.cs
- PersonalizationStateInfo.cs
- SaveFileDialog.cs
- UrlAuthFailedErrorFormatter.cs
- ContentPlaceHolder.cs
- ChildChangedEventArgs.cs
- SQLMoney.cs
- VisualTarget.cs
- WindowInteropHelper.cs
- ImportContext.cs
- WebZoneDesigner.cs
- Ipv6Element.cs
- Html32TextWriter.cs
- IndependentlyAnimatedPropertyMetadata.cs
- ClientSponsor.cs
- ImageListUtils.cs
- MediaTimeline.cs
- DiagnosticTraceSource.cs
- XPathNode.cs
- Assert.cs
- DataServiceRequestArgs.cs
- HttpListenerResponse.cs
- X509Extension.cs
- XmlSchemaComplexContentRestriction.cs
- XmlSchemaType.cs
- PathNode.cs
- Light.cs
- GregorianCalendar.cs
- GridViewRow.cs
- TextElementEnumerator.cs
- GridView.cs
- Encoding.cs
- NumberSubstitution.cs
- ServicePoint.cs
- PageThemeParser.cs
- ProgressChangedEventArgs.cs
- Part.cs
- AsymmetricSignatureDeformatter.cs
- DesignerDataTable.cs
- StructuredTypeInfo.cs
- MimeTypeMapper.cs
- WebPartConnectionsDisconnectVerb.cs
- Condition.cs
- BaseTemplateBuildProvider.cs
- AttributeProviderAttribute.cs
- ThreadStaticAttribute.cs
- ServiceDocument.cs
- GeometryValueSerializer.cs
- Compiler.cs
- HttpFormatExtensions.cs
- SerializationStore.cs
- FramingDecoders.cs
- TransactionProxy.cs
- SqlPersonalizationProvider.cs
- BatchServiceHost.cs
- UICuesEvent.cs
- TypeInitializationException.cs
- ChtmlImageAdapter.cs
- GrammarBuilderDictation.cs
- FloatSumAggregationOperator.cs
- PropertyCollection.cs
- CodeAssignStatement.cs