Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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) {}
}
}
// 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);
}
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
- XmlQueryOutput.cs
- dataprotectionpermission.cs
- DownloadProgressEventArgs.cs
- PageClientProxyGenerator.cs
- CodeLabeledStatement.cs
- PreservationFileReader.cs
- OperationContractAttribute.cs
- util.cs
- ManagedWndProcTracker.cs
- OleDbTransaction.cs
- GroupItem.cs
- AttributeInfo.cs
- ExceptionUtil.cs
- HtmlInputPassword.cs
- CreateParams.cs
- DbParameterCollection.cs
- ControlParameter.cs
- MemberProjectionIndex.cs
- JavaScriptSerializer.cs
- DoubleCollection.cs
- FactoryMaker.cs
- EntryPointNotFoundException.cs
- ListBoxItemAutomationPeer.cs
- DependencyPropertyKey.cs
- Dump.cs
- PortCache.cs
- RecipientInfo.cs
- FormParameter.cs
- LiteralTextParser.cs
- SoapEnumAttribute.cs
- EmptyReadOnlyDictionaryInternal.cs
- StreamHelper.cs
- BaseDataBoundControl.cs
- HttpListener.cs
- XMLDiffLoader.cs
- MostlySingletonList.cs
- FormsAuthenticationModule.cs
- ViewStateException.cs
- FontUnit.cs
- BlobPersonalizationState.cs
- MetadataFile.cs
- BaseCAMarshaler.cs
- DataSet.cs
- ListBase.cs
- ExpandoObject.cs
- HtmlInputSubmit.cs
- GZipStream.cs
- webproxy.cs
- TextRangeEditTables.cs
- CompilationSection.cs
- FontCacheUtil.cs
- ImageIndexConverter.cs
- LogFlushAsyncResult.cs
- TextureBrush.cs
- SectionVisual.cs
- FontResourceCache.cs
- WebMessageBodyStyleHelper.cs
- InputLanguageProfileNotifySink.cs
- ScalarType.cs
- AnnotationAuthorChangedEventArgs.cs
- DynamicExpression.cs
- ListenerTraceUtility.cs
- XPathNavigatorKeyComparer.cs
- Version.cs
- DefaultShape.cs
- Delegate.cs
- MarkupExtensionReturnTypeAttribute.cs
- MeshGeometry3D.cs
- Publisher.cs
- SystemDropShadowChrome.cs
- URI.cs
- NotCondition.cs
- PolygonHotSpot.cs
- IsolatedStorageFilePermission.cs
- CommandHelper.cs
- Encoder.cs
- ComboBoxRenderer.cs
- ModuleBuilder.cs
- TimeZone.cs
- UnknownBitmapDecoder.cs
- xmlsaver.cs
- SyntaxCheck.cs
- QilPatternFactory.cs
- BamlLocalizableResourceKey.cs
- InvokeGenerator.cs
- DropDownList.cs
- WindowsToolbarItemAsMenuItem.cs
- AmbiguousMatchException.cs
- DbConnectionFactory.cs
- RubberbandSelector.cs
- DayRenderEvent.cs
- VersionedStream.cs
- QueryContinueDragEventArgs.cs
- CompiledELinqQueryState.cs
- ProvideValueServiceProvider.cs
- DoubleAnimationClockResource.cs
- VirtualDirectoryMappingCollection.cs
- PeerCustomResolverElement.cs
- CheckBoxList.cs
- InvalidFilterCriteriaException.cs