Code:
/ FX-1434 / FX-1434 / 1.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
- BaseProcessor.cs
- FormClosingEvent.cs
- SignatureGenerator.cs
- DataGridLengthConverter.cs
- StoragePropertyMapping.cs
- RegexCapture.cs
- ActivityInstanceMap.cs
- TextDpi.cs
- MenuAdapter.cs
- Decoder.cs
- IList.cs
- log.cs
- GridViewDeletedEventArgs.cs
- ZeroOpNode.cs
- SoapAttributeAttribute.cs
- CellQuery.cs
- SrgsElementList.cs
- ImageList.cs
- InitializerFacet.cs
- XamlInterfaces.cs
- CancellationState.cs
- ImplicitInputBrush.cs
- recordstatefactory.cs
- Paragraph.cs
- Publisher.cs
- UnescapedXmlDiagnosticData.cs
- WhitespaceRuleReader.cs
- IndentedWriter.cs
- AspProxy.cs
- ResXBuildProvider.cs
- TdsParserSafeHandles.cs
- NativeActivityTransactionContext.cs
- GetChildSubtree.cs
- ProcessStartInfo.cs
- FormsAuthenticationModule.cs
- NamespaceDecl.cs
- IERequestCache.cs
- securitymgrsite.cs
- DataGridViewHeaderCell.cs
- login.cs
- CultureSpecificStringDictionary.cs
- XsltSettings.cs
- AssemblyInfo.cs
- SecureEnvironment.cs
- StylusButtonEventArgs.cs
- GridSplitter.cs
- ECDiffieHellmanPublicKey.cs
- InertiaRotationBehavior.cs
- ListViewEditEventArgs.cs
- CacheChildrenQuery.cs
- QueryableDataSource.cs
- SerializationInfo.cs
- HtmlObjectListAdapter.cs
- ToolZoneDesigner.cs
- DataRowComparer.cs
- ECDiffieHellmanCng.cs
- TypeRestriction.cs
- ConstNode.cs
- MultiView.cs
- PeerOutputChannel.cs
- ClientRuntimeConfig.cs
- XmlChildNodes.cs
- TextEndOfParagraph.cs
- ToolStripContentPanel.cs
- XmlIlTypeHelper.cs
- SessionSymmetricTransportSecurityProtocolFactory.cs
- StylusPlugin.cs
- StagingAreaInputItem.cs
- XmlLoader.cs
- SafeReversePInvokeHandle.cs
- ConsoleCancelEventArgs.cs
- WebPartHelpVerb.cs
- UrlSyndicationContent.cs
- MetaModel.cs
- HealthMonitoringSectionHelper.cs
- InvalidPrinterException.cs
- WinFormsSecurity.cs
- QilInvokeLateBound.cs
- __Error.cs
- WindowsSlider.cs
- TranslateTransform.cs
- CellTreeNode.cs
- PriorityQueue.cs
- ScriptResourceHandler.cs
- DetailsViewDeleteEventArgs.cs
- RequestSecurityToken.cs
- TabPanel.cs
- SmtpClient.cs
- SchemaInfo.cs
- EntityDataSourceColumn.cs
- HttpHostedTransportConfiguration.cs
- SlotInfo.cs
- DesignerTransactionCloseEvent.cs
- RequiredFieldValidator.cs
- DataGridAddNewRow.cs
- TraceXPathNavigator.cs
- FilterException.cs
- XmlQueryType.cs
- FlowDocumentView.cs
- BufferAllocator.cs