Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- bidPrivateBase.cs
- ProcessModelSection.cs
- TextContainerChangedEventArgs.cs
- AutoResetEvent.cs
- SqlFlattener.cs
- HitTestParameters.cs
- ThreadAbortException.cs
- MarkupObject.cs
- TextSelectionHelper.cs
- ProfileProvider.cs
- TextTreePropertyUndoUnit.cs
- ImageButton.cs
- WebPartVerbsEventArgs.cs
- ImageKeyConverter.cs
- QuotaExceededException.cs
- AbsoluteQuery.cs
- Propagator.ExtentPlaceholderCreator.cs
- XmlAttributes.cs
- PerformanceCounterManager.cs
- AppSettingsExpressionEditor.cs
- FixUpCollection.cs
- ManifestSignatureInformation.cs
- XPathBuilder.cs
- ListDataBindEventArgs.cs
- AttributeUsageAttribute.cs
- Model3DGroup.cs
- DateTimeParse.cs
- LambdaCompiler.Unary.cs
- EdmComplexTypeAttribute.cs
- SHA1CryptoServiceProvider.cs
- AdCreatedEventArgs.cs
- HashStream.cs
- DebugTrace.cs
- FilteredSchemaElementLookUpTable.cs
- DeploymentExceptionMapper.cs
- LocationSectionRecord.cs
- ContextCorrelationInitializer.cs
- ToolboxItemWrapper.cs
- LoadRetryStrategyFactory.cs
- DriveInfo.cs
- QilXmlReader.cs
- ProfileSection.cs
- HelpProvider.cs
- DatePickerTextBox.cs
- DiscoveryVersionConverter.cs
- ObjectListShowCommandsEventArgs.cs
- StateMachine.cs
- SharedPerformanceCounter.cs
- RefExpr.cs
- CompensateDesigner.cs
- MappedMetaModel.cs
- SeparatorAutomationPeer.cs
- ReaderWriterLockWrapper.cs
- BuilderPropertyEntry.cs
- KeyGesture.cs
- TextElement.cs
- DefaultObjectMappingItemCollection.cs
- ProxySimple.cs
- PeerNameResolver.cs
- Parameter.cs
- HandleTable.cs
- EventPrivateKey.cs
- StringBuilder.cs
- DataServiceRequestOfT.cs
- DataGridTableCollection.cs
- HotSpotCollection.cs
- ToolStripItemCollection.cs
- ToolStripGrip.cs
- Quaternion.cs
- CodeArrayCreateExpression.cs
- StrongNameIdentityPermission.cs
- ReadWriteSpinLock.cs
- SqlMethodTransformer.cs
- UInt16Converter.cs
- XmlnsDefinitionAttribute.cs
- Substitution.cs
- Base64Stream.cs
- TableAutomationPeer.cs
- CallSiteHelpers.cs
- RSAPKCS1SignatureDeformatter.cs
- MetadataHelper.cs
- DbExpressionBuilder.cs
- ImpersonationContext.cs
- BasicBrowserDialog.designer.cs
- SmtpCommands.cs
- XmlSchemaAttributeGroup.cs
- BamlStream.cs
- SortedDictionary.cs
- IProvider.cs
- FrameworkElementAutomationPeer.cs
- SplashScreen.cs
- XmlFormatReaderGenerator.cs
- ListViewTableRow.cs
- cookiecontainer.cs
- HScrollBar.cs
- AuthStoreRoleProvider.cs
- Rijndael.cs
- TextPattern.cs
- WsdlWriter.cs
- FixedBufferAttribute.cs