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
- DesignerImageAdapter.cs
- LowerCaseStringConverter.cs
- RichTextBox.cs
- SQlBooleanStorage.cs
- ClonableStack.cs
- SqlResolver.cs
- Timeline.cs
- XmlSchemaComplexType.cs
- LicenseManager.cs
- DataPagerFieldItem.cs
- StringComparer.cs
- DeviceContext.cs
- DataPagerFieldCollection.cs
- ViewCellRelation.cs
- _AcceptOverlappedAsyncResult.cs
- DataGridViewRowsAddedEventArgs.cs
- HtmlTitle.cs
- BulletedListDesigner.cs
- DynamicHyperLink.cs
- PrinterResolution.cs
- FixedDSBuilder.cs
- HyperLinkField.cs
- RuleRef.cs
- SqlSupersetValidator.cs
- PropertyGroupDescription.cs
- PartialTrustVisibleAssembly.cs
- WizardStepBase.cs
- XmlNodeReader.cs
- TypeAccessException.cs
- FlowDocument.cs
- WebPartDisplayModeEventArgs.cs
- XmlMapping.cs
- EventDriven.cs
- ToolTip.cs
- AssemblyInfo.cs
- CustomLineCap.cs
- DragDeltaEventArgs.cs
- StrokeCollection.cs
- AvtEvent.cs
- HelpFileFileNameEditor.cs
- CorrelationManager.cs
- ReflectPropertyDescriptor.cs
- LifetimeServices.cs
- TimeIntervalCollection.cs
- CompiledIdentityConstraint.cs
- WmiInstallComponent.cs
- HtmlWindowCollection.cs
- CreateUserWizardStep.cs
- GeometryHitTestResult.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- DataGridPageChangedEventArgs.cs
- TextCharacters.cs
- ResponseStream.cs
- ChineseLunisolarCalendar.cs
- LogFlushAsyncResult.cs
- ContentPlaceHolder.cs
- Executor.cs
- DBParameter.cs
- BooleanConverter.cs
- ObjectQuery.cs
- ModuleConfigurationInfo.cs
- AspCompat.cs
- indexingfiltermarshaler.cs
- CompilationUnit.cs
- PasswordBoxAutomationPeer.cs
- EntityDataSourceConfigureObjectContext.cs
- TextEditorLists.cs
- TypeSystemProvider.cs
- IndexedGlyphRun.cs
- Inline.cs
- EventLogPermission.cs
- FontStyleConverter.cs
- XmlDocument.cs
- CommandManager.cs
- DES.cs
- SemanticResolver.cs
- EmptyImpersonationContext.cs
- CommandField.cs
- Point3DCollection.cs
- WebPartCancelEventArgs.cs
- WebScriptEnablingElement.cs
- WinEventTracker.cs
- DateBoldEvent.cs
- URLString.cs
- XmlSignificantWhitespace.cs
- Parsers.cs
- Vector3DValueSerializer.cs
- XPathAncestorIterator.cs
- IgnoreSectionHandler.cs
- TypeSource.cs
- X509Utils.cs
- LinkedResourceCollection.cs
- Pkcs9Attribute.cs
- Route.cs
- NativeMethods.cs
- XsltSettings.cs
- TabPanel.cs
- JapaneseLunisolarCalendar.cs
- TreeWalkHelper.cs
- StringUtil.cs