Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- CheckBoxList.cs
- HwndMouseInputProvider.cs
- RelationshipWrapper.cs
- PersistenceException.cs
- Matrix3DStack.cs
- EventProxy.cs
- StylusPointProperty.cs
- ExpressionVisitor.cs
- namescope.cs
- RectValueSerializer.cs
- TextTabProperties.cs
- Authorization.cs
- BindingList.cs
- ReadOnlyDictionary.cs
- ErrorProvider.cs
- SafeNativeMethodsCLR.cs
- EllipseGeometry.cs
- ItemsChangedEventArgs.cs
- FrameworkElementAutomationPeer.cs
- UnhandledExceptionEventArgs.cs
- BitmapImage.cs
- HierarchicalDataBoundControl.cs
- SafeCryptHandles.cs
- InfoCardArgumentException.cs
- UTF32Encoding.cs
- ObjectDataSourceSelectingEventArgs.cs
- LinkLabel.cs
- WebReferencesBuildProvider.cs
- ConnectionPointConverter.cs
- TemplatedWizardStep.cs
- JavaScriptSerializer.cs
- SQLBinary.cs
- DataGridRow.cs
- LogSwitch.cs
- CharacterBuffer.cs
- SoapReflectionImporter.cs
- DynamicResourceExtensionConverter.cs
- Int16Animation.cs
- SmiContext.cs
- WindowsListViewGroupHelper.cs
- Vector3D.cs
- DataServiceHostFactory.cs
- MTConfigUtil.cs
- RegexGroupCollection.cs
- TextRange.cs
- AesCryptoServiceProvider.cs
- GregorianCalendar.cs
- UpdatePanelControlTrigger.cs
- PersonalizationStateQuery.cs
- Configuration.cs
- SHA1CryptoServiceProvider.cs
- GuidelineSet.cs
- ChtmlMobileTextWriter.cs
- ManipulationInertiaStartingEventArgs.cs
- TableSectionStyle.cs
- WebPartConnectionsConfigureVerb.cs
- ISAPIApplicationHost.cs
- WmlLabelAdapter.cs
- XmlSchemaCollection.cs
- CellParaClient.cs
- OuterGlowBitmapEffect.cs
- MessageQuerySet.cs
- CollectionBuilder.cs
- Number.cs
- ScriptModule.cs
- EventData.cs
- StringToken.cs
- Attachment.cs
- QueryStringHandler.cs
- Events.cs
- SqlRecordBuffer.cs
- CanonicalXml.cs
- InputLangChangeRequestEvent.cs
- XmlDocumentSerializer.cs
- BulletedList.cs
- ChannelTraceRecord.cs
- DataGridViewSelectedRowCollection.cs
- ADMembershipUser.cs
- WebPartChrome.cs
- ImportContext.cs
- XPathSingletonIterator.cs
- MessageAction.cs
- TaskFormBase.cs
- GridViewPageEventArgs.cs
- UserControlBuildProvider.cs
- TreeNodeSelectionProcessor.cs
- Point3DCollection.cs
- ScrollEventArgs.cs
- ProfileProvider.cs
- BoundingRectTracker.cs
- PassportPrincipal.cs
- SendActivity.cs
- EdmPropertyAttribute.cs
- OdbcConnectionHandle.cs
- HMACSHA1.cs
- CodeLabeledStatement.cs
- Vector.cs
- CreateRefExpr.cs
- BaseTreeIterator.cs
- ToolStripTemplateNode.cs