Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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) {} } } // 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); } 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
- X509Certificate.cs
- ServiceDeploymentInfo.cs
- DrawingServices.cs
- InkCanvasSelection.cs
- WebPartTransformerCollection.cs
- PrimitiveRenderer.cs
- ExtendedPropertyDescriptor.cs
- HttpDateParse.cs
- Debug.cs
- DetailsViewUpdateEventArgs.cs
- RunClient.cs
- TableDetailsCollection.cs
- SqlProfileProvider.cs
- RtfNavigator.cs
- _ConnectOverlappedAsyncResult.cs
- WizardPanel.cs
- DataGridTable.cs
- AsymmetricKeyExchangeFormatter.cs
- RuleValidation.cs
- FixedSOMTableRow.cs
- BinaryParser.cs
- TextTreePropertyUndoUnit.cs
- TableLayoutStyle.cs
- TagNameToTypeMapper.cs
- SoapFault.cs
- FusionWrap.cs
- VerificationAttribute.cs
- ReachFixedPageSerializer.cs
- glyphs.cs
- DurableInstanceManager.cs
- KeyPullup.cs
- PieceDirectory.cs
- UnsafeNativeMethods.cs
- Panel.cs
- AssemblyCacheEntry.cs
- NumericExpr.cs
- XmlUnspecifiedAttribute.cs
- ArraySubsetEnumerator.cs
- HandlerFactoryWrapper.cs
- Activator.cs
- IPAddressCollection.cs
- CalendarData.cs
- ReadOnlyAttribute.cs
- XmlConvert.cs
- AuthenticationService.cs
- InputElement.cs
- RenderData.cs
- Site.cs
- XmlUnspecifiedAttribute.cs
- MILUtilities.cs
- DataPagerCommandEventArgs.cs
- AuthenticationModuleElementCollection.cs
- PackageDigitalSignatureManager.cs
- _Events.cs
- VisualTreeUtils.cs
- CapiNative.cs
- SemanticKeyElement.cs
- KernelTypeValidation.cs
- HtmlInputReset.cs
- DesignColumnCollection.cs
- CqlLexer.cs
- ErrorStyle.cs
- XmlDataDocument.cs
- CultureInfo.cs
- HttpEncoder.cs
- QueryResultOp.cs
- CompositeControl.cs
- SecurityHelper.cs
- DataServiceHostFactory.cs
- ChtmlFormAdapter.cs
- KernelTypeValidation.cs
- HwndTarget.cs
- UrlPath.cs
- FormViewInsertEventArgs.cs
- DisplayNameAttribute.cs
- ServerValidateEventArgs.cs
- SkipQueryOptionExpression.cs
- DesignerDataColumn.cs
- ISAPIRuntime.cs
- ThreadPool.cs
- SafeNativeMethods.cs
- Int16AnimationUsingKeyFrames.cs
- RightsManagementInformation.cs
- MsmqInputMessagePool.cs
- TextOnlyOutput.cs
- SafeArrayTypeMismatchException.cs
- ProcessRequestArgs.cs
- MinimizableAttributeTypeConverter.cs
- HuffmanTree.cs
- SQLMembershipProvider.cs
- TiffBitmapEncoder.cs
- ExecutedRoutedEventArgs.cs
- LabelDesigner.cs
- VisualBasic.cs
- SystemTcpStatistics.cs
- HtmlHistory.cs
- ZipArchive.cs
- TransportReplyChannelAcceptor.cs
- ToolStripDropDownMenu.cs
- ContractSearchPattern.cs