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
- XmlValueConverter.cs
- mediaclock.cs
- XmlSerializerNamespaces.cs
- EndpointInfoCollection.cs
- RegexNode.cs
- OutputCacheSection.cs
- Lease.cs
- ImageList.cs
- TaiwanLunisolarCalendar.cs
- cookie.cs
- EntryWrittenEventArgs.cs
- MonitorWrapper.cs
- SystemColorTracker.cs
- AsymmetricKeyExchangeFormatter.cs
- Marshal.cs
- PopupRootAutomationPeer.cs
- X509Certificate.cs
- XmlSchemaObject.cs
- SqlSupersetValidator.cs
- BoundingRectTracker.cs
- CodeEventReferenceExpression.cs
- AssociationTypeEmitter.cs
- XsdValidatingReader.cs
- TreeIterator.cs
- XmlFormatExtensionPointAttribute.cs
- AspNetHostingPermission.cs
- Bidi.cs
- RawStylusInputReport.cs
- StringOutput.cs
- ContextStaticAttribute.cs
- TransactionTraceIdentifier.cs
- SoapBinding.cs
- HostedHttpTransportManager.cs
- TypeUtil.cs
- DataBindingExpressionBuilder.cs
- _ListenerAsyncResult.cs
- FilterableAttribute.cs
- Quad.cs
- XmlSchemaObject.cs
- ActiveXSite.cs
- CriticalHandle.cs
- StrongNamePublicKeyBlob.cs
- DefaultTextStore.cs
- EmissiveMaterial.cs
- cookie.cs
- WebPartDisplayModeCollection.cs
- DataServiceQueryOfT.cs
- HttpConfigurationContext.cs
- StaticSiteMapProvider.cs
- AddInStore.cs
- Operators.cs
- TextContainerChangeEventArgs.cs
- PropertyPathWorker.cs
- DbException.cs
- PreviewPageInfo.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- BasePattern.cs
- dataSvcMapFileLoader.cs
- OracleDateTime.cs
- OledbConnectionStringbuilder.cs
- EntityClassGenerator.cs
- DependencyPropertyDescriptor.cs
- CryptoApi.cs
- IsolatedStorage.cs
- ProgressBar.cs
- Material.cs
- DataSetMappper.cs
- PropertyTab.cs
- DecimalAverageAggregationOperator.cs
- TableLayoutCellPaintEventArgs.cs
- SQLUtility.cs
- UnsafeNativeMethods.cs
- AccessDataSource.cs
- ContentPlaceHolder.cs
- ChildTable.cs
- PopupRootAutomationPeer.cs
- DeploymentSection.cs
- StateWorkerRequest.cs
- arc.cs
- MenuBase.cs
- PropertyChangeTracker.cs
- PointAnimationClockResource.cs
- Point3DAnimationBase.cs
- LassoSelectionBehavior.cs
- ILGen.cs
- Trigger.cs
- DescriptionCreator.cs
- EntityUtil.cs
- DSASignatureFormatter.cs
- SubqueryRules.cs
- GACMembershipCondition.cs
- Axis.cs
- ImageField.cs
- AttachedPropertyBrowsableAttribute.cs
- SecurityVerifiedMessage.cs
- CompilationUtil.cs
- CompositeControl.cs
- InvalidOperationException.cs
- DeclarativeCatalogPart.cs
- SqlUserDefinedTypeAttribute.cs