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
- TableCell.cs
- BlurBitmapEffect.cs
- FolderLevelBuildProvider.cs
- ServiceOperationUIEditor.cs
- InkCanvasFeedbackAdorner.cs
- MediaElement.cs
- ChannelPoolSettings.cs
- SafeRightsManagementQueryHandle.cs
- SqlFactory.cs
- RegexNode.cs
- BuildManager.cs
- GridViewRowCollection.cs
- ArgumentDesigner.xaml.cs
- TypedReference.cs
- TableItemProviderWrapper.cs
- RelationalExpressions.cs
- LayoutEvent.cs
- LeaseManager.cs
- DrawListViewItemEventArgs.cs
- LambdaCompiler.Logical.cs
- HtmlListAdapter.cs
- ObjectCloneHelper.cs
- ListBase.cs
- InvalidCastException.cs
- MenuItem.cs
- Int32AnimationBase.cs
- QilInvokeLateBound.cs
- ThaiBuddhistCalendar.cs
- SafeBitVector32.cs
- WebServiceTypeData.cs
- BoundColumn.cs
- SmtpLoginAuthenticationModule.cs
- TreeViewBindingsEditor.cs
- WorkflowOwnershipException.cs
- TextViewElement.cs
- Link.cs
- BuildProviderCollection.cs
- ReceiveSecurityHeader.cs
- CookieHandler.cs
- VerificationException.cs
- oledbmetadatacollectionnames.cs
- WpfPayload.cs
- SoapRpcMethodAttribute.cs
- UIElement3D.cs
- ISAPIApplicationHost.cs
- WebServiceMethodData.cs
- BypassElement.cs
- BatchParser.cs
- WorkflowServiceHost.cs
- Win32Interop.cs
- RequestCacheEntry.cs
- TableLayout.cs
- HashStream.cs
- OperationFormatUse.cs
- DecoderNLS.cs
- IDQuery.cs
- MetadataProperty.cs
- EtwTrackingBehaviorElement.cs
- StreamUpgradeBindingElement.cs
- WindowsStartMenu.cs
- Schedule.cs
- ContentPosition.cs
- StorageInfo.cs
- DiscoveryInnerClientManaged11.cs
- NativeCppClassAttribute.cs
- NetMsmqSecurityElement.cs
- DataGridrowEditEndingEventArgs.cs
- ProfessionalColors.cs
- GeometryConverter.cs
- DataControlFieldTypeEditor.cs
- PostBackTrigger.cs
- SoapFormatter.cs
- SelectionPattern.cs
- CacheAxisQuery.cs
- PreservationFileWriter.cs
- StoreAnnotationsMap.cs
- BasicExpandProvider.cs
- BasicCommandTreeVisitor.cs
- SqlOuterApplyReducer.cs
- DiscoveryDocumentReference.cs
- _AuthenticationState.cs
- FormViewDeletedEventArgs.cs
- EntityDataSourceMemberPath.cs
- MimeWriter.cs
- FontStretchConverter.cs
- CacheVirtualItemsEvent.cs
- ToolStripItemGlyph.cs
- IUnknownConstantAttribute.cs
- HttpCacheVaryByContentEncodings.cs
- MarkedHighlightComponent.cs
- OpenCollectionAsyncResult.cs
- DataFormats.cs
- BufferedMessageWriter.cs
- CallbackValidatorAttribute.cs
- OracleInternalConnection.cs
- TakeQueryOptionExpression.cs
- InheritanceAttribute.cs
- OleDbError.cs
- MultiViewDesigner.cs
- TemplateControlCodeDomTreeGenerator.cs