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
- AccessText.cs
- SelectionChangedEventArgs.cs
- SkinBuilder.cs
- SrgsSubset.cs
- CheckedPointers.cs
- DesignRelation.cs
- AdornedElementPlaceholder.cs
- ObjectKeyFrameCollection.cs
- DateTimeOffsetAdapter.cs
- URLIdentityPermission.cs
- ManagedIStream.cs
- XmlCharType.cs
- StylusPointProperty.cs
- CngKeyBlobFormat.cs
- RightsManagementEncryptedStream.cs
- DoubleLinkListEnumerator.cs
- TopClause.cs
- ConfigXmlElement.cs
- EntityClassGenerator.cs
- DbCommandDefinition.cs
- AuthenticateEventArgs.cs
- LayoutTableCell.cs
- ReliableChannelListener.cs
- DbProviderFactory.cs
- XhtmlTextWriter.cs
- _DomainName.cs
- _Win32.cs
- PageContentCollection.cs
- XmlElementList.cs
- MultiAsyncResult.cs
- _ContextAwareResult.cs
- DataSourceXmlSerializationAttribute.cs
- MethodImplAttribute.cs
- SettingsContext.cs
- PanelStyle.cs
- Currency.cs
- InputScope.cs
- DataGridView.cs
- Tile.cs
- SqlDataReader.cs
- XPathEmptyIterator.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- InstanceKey.cs
- SrgsText.cs
- Vector.cs
- XmlNodeChangedEventManager.cs
- Typography.cs
- CompiledQueryCacheKey.cs
- TemplateContainer.cs
- FormattedText.cs
- RegexMatch.cs
- ActivityExecutorDelegateInfo.cs
- HandlerWithFactory.cs
- EntityViewGenerationAttribute.cs
- NameValueSectionHandler.cs
- bindurihelper.cs
- DropShadowEffect.cs
- Line.cs
- IconHelper.cs
- BamlCollectionHolder.cs
- ExpanderAutomationPeer.cs
- PropertyStore.cs
- WebExceptionStatus.cs
- EditorServiceContext.cs
- WebPartsPersonalization.cs
- IntegerValidatorAttribute.cs
- panel.cs
- KeyProperty.cs
- ReadOnlyDictionary.cs
- UniqueID.cs
- Animatable.cs
- IdentityValidationException.cs
- AuthenticateEventArgs.cs
- EntityDesignerDataSourceView.cs
- TextFormatter.cs
- PreviewPageInfo.cs
- ADMembershipProvider.cs
- AppDomainManager.cs
- ToolboxItemCollection.cs
- UnknownBitmapDecoder.cs
- PeerNameRegistration.cs
- QueryTreeBuilder.cs
- StylusPointPropertyInfoDefaults.cs
- DataSourceDescriptorCollection.cs
- WebPartCatalogCloseVerb.cs
- TemplateParser.cs
- FontSizeConverter.cs
- DataGridViewCellEventArgs.cs
- Rule.cs
- RegisteredExpandoAttribute.cs
- EventDescriptorCollection.cs
- EntitySet.cs
- ButtonChrome.cs
- EventLogSession.cs
- TextParentUndoUnit.cs
- TrustExchangeException.cs
- __ConsoleStream.cs
- TemplateBuilder.cs
- PerspectiveCamera.cs
- C14NUtil.cs