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
- PersonalizationAdministration.cs
- EntityDataSourceViewSchema.cs
- FacetChecker.cs
- WebPart.cs
- ToolStripActionList.cs
- DbDataAdapter.cs
- RootCodeDomSerializer.cs
- ValidationResults.cs
- GcSettings.cs
- EntityDataReader.cs
- DataGridViewCheckBoxColumn.cs
- CharacterMetrics.cs
- ToolStripManager.cs
- FileLevelControlBuilderAttribute.cs
- TextBox.cs
- HttpFileCollection.cs
- webclient.cs
- FileNotFoundException.cs
- Base64WriteStateInfo.cs
- rsa.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- ObjectAnimationBase.cs
- GridViewHeaderRowPresenter.cs
- TreeNodeConverter.cs
- DataGridViewColumnHeaderCell.cs
- TimerElapsedEvenArgs.cs
- ManifestResourceInfo.cs
- ClickablePoint.cs
- TableProviderWrapper.cs
- BaseAsyncResult.cs
- DialogResultConverter.cs
- XmlSchemaSimpleTypeList.cs
- TemplateBaseAction.cs
- PageScaling.cs
- PropertyKey.cs
- _StreamFramer.cs
- EdmTypeAttribute.cs
- PropertyConverter.cs
- SiteMapNodeItem.cs
- QilFunction.cs
- HttpListenerRequest.cs
- _NtlmClient.cs
- ListenerChannelContext.cs
- GatewayIPAddressInformationCollection.cs
- PlanCompiler.cs
- Internal.cs
- BehaviorEditorPart.cs
- UIElementParaClient.cs
- Mutex.cs
- Margins.cs
- HtmlInputPassword.cs
- DataBinding.cs
- ToolBarDesigner.cs
- Int16.cs
- WorkflowInstanceExtensionProvider.cs
- SettingsProperty.cs
- PeerInvitationResponse.cs
- TransactionFilter.cs
- DerivedKeySecurityTokenStub.cs
- OuterGlowBitmapEffect.cs
- RadialGradientBrush.cs
- ConfigurationLockCollection.cs
- SafeRegistryHandle.cs
- webclient.cs
- UnaryNode.cs
- MSAAEventDispatcher.cs
- WebBrowser.cs
- DbConvert.cs
- DataViewManagerListItemTypeDescriptor.cs
- ProviderCommandInfoUtils.cs
- UITypeEditor.cs
- ConfigurationLocationCollection.cs
- HeaderedContentControl.cs
- VScrollProperties.cs
- RuleValidation.cs
- EventListenerClientSide.cs
- IgnoreFlushAndCloseStream.cs
- ProviderException.cs
- TypeNameConverter.cs
- UdpSocketReceiveManager.cs
- RequestNavigateEventArgs.cs
- AppLevelCompilationSectionCache.cs
- ToolStripManager.cs
- Region.cs
- Brushes.cs
- DbCommandTree.cs
- ToggleProviderWrapper.cs
- FirewallWrapper.cs
- StyleSheetRefUrlEditor.cs
- TextRange.cs
- Misc.cs
- RegistryConfigurationProvider.cs
- DataGridViewSortCompareEventArgs.cs
- ParameterCollection.cs
- WebEventTraceProvider.cs
- Pair.cs
- WorkflowQueuingService.cs
- IntegerCollectionEditor.cs
- PropertyInfoSet.cs
- ControlDesignerState.cs