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
- ProcessHost.cs
- DebugHandleTracker.cs
- PropertyEntry.cs
- BookmarkInfo.cs
- DllNotFoundException.cs
- BooleanStorage.cs
- BufferAllocator.cs
- CrossAppDomainChannel.cs
- VarRefManager.cs
- VisemeEventArgs.cs
- MetadataUtil.cs
- MetabaseServerConfig.cs
- SqlTrackingWorkflowInstance.cs
- XpsFont.cs
- ToolStripPanelRow.cs
- ReaderOutput.cs
- DbSetClause.cs
- WebPartEventArgs.cs
- SafeFileMappingHandle.cs
- Point3DAnimation.cs
- DES.cs
- BooleanKeyFrameCollection.cs
- IdentityValidationException.cs
- XmlNamedNodeMap.cs
- SettingsPropertyValueCollection.cs
- SRDisplayNameAttribute.cs
- LabelAutomationPeer.cs
- Container.cs
- BlurEffect.cs
- AssemblyFilter.cs
- ConfigPathUtility.cs
- CompositeDispatchFormatter.cs
- SoundPlayerAction.cs
- ChunkedMemoryStream.cs
- XmlHierarchyData.cs
- XmlValidatingReader.cs
- CqlErrorHelper.cs
- DataGridViewBand.cs
- NetworkCredential.cs
- DependencyPropertyKind.cs
- TouchesOverProperty.cs
- IDQuery.cs
- ObjectStorage.cs
- TraceListeners.cs
- XsltArgumentList.cs
- UMPAttributes.cs
- DocumentXPathNavigator.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- CodePageEncoding.cs
- TreeIterator.cs
- UnhandledExceptionEventArgs.cs
- ComboBox.cs
- XmlSchemaComplexContentExtension.cs
- XmlnsCompatibleWithAttribute.cs
- ClientUtils.cs
- DataGridViewLayoutData.cs
- WindowsFormsEditorServiceHelper.cs
- Rect3D.cs
- DesignerDataParameter.cs
- DataTableClearEvent.cs
- AutoScrollHelper.cs
- RowToParametersTransformer.cs
- __FastResourceComparer.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- TextBoxView.cs
- RuleProcessor.cs
- DescendentsWalker.cs
- HttpCapabilitiesSectionHandler.cs
- Vector3DAnimation.cs
- latinshape.cs
- TableItemProviderWrapper.cs
- ObjectListCommand.cs
- PartBasedPackageProperties.cs
- InheritanceContextHelper.cs
- GeneralTransform3DCollection.cs
- UrlPropertyAttribute.cs
- DBSchemaTable.cs
- ShadowGlyph.cs
- DtcInterfaces.cs
- CompilationUnit.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- COSERVERINFO.cs
- PhysicalFontFamily.cs
- TimelineCollection.cs
- ObjectItemAssemblyLoader.cs
- TransformCryptoHandle.cs
- DataControlFieldCollection.cs
- BindingCollection.cs
- ByteAnimationUsingKeyFrames.cs
- X509CertificateValidator.cs
- TextParaClient.cs
- MailAddress.cs
- ServiceAuthorizationElement.cs
- DataPager.cs
- XmlSchemaSimpleContentExtension.cs
- PipelineModuleStepContainer.cs
- WindowInteropHelper.cs
- _ProxyChain.cs
- precedingsibling.cs
- SID.cs