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
- FactoryMaker.cs
- CodeArgumentReferenceExpression.cs
- StrongNamePublicKeyBlob.cs
- GZipDecoder.cs
- RemoteWebConfigurationHost.cs
- EntityViewGenerator.cs
- RemotingSurrogateSelector.cs
- PageParserFilter.cs
- LinkClickEvent.cs
- MetricEntry.cs
- HtmlInputButton.cs
- BinaryExpression.cs
- ComplexTypeEmitter.cs
- WebBrowserPermission.cs
- XmlUtf8RawTextWriter.cs
- ExpressionBuilder.cs
- ComponentEditorForm.cs
- HandlerBase.cs
- NamedObjectList.cs
- ConfigXmlText.cs
- XmlSchemas.cs
- DrawingVisualDrawingContext.cs
- FlowDocumentPaginator.cs
- SoapInteropTypes.cs
- ShortcutKeysEditor.cs
- QueueAccessMode.cs
- CodeEntryPointMethod.cs
- RegexFCD.cs
- MD5.cs
- LookupBindingPropertiesAttribute.cs
- DocumentPageHost.cs
- ShapingEngine.cs
- ControlEvent.cs
- Processor.cs
- SectionXmlInfo.cs
- Label.cs
- RequestQueue.cs
- SmiMetaDataProperty.cs
- PaintValueEventArgs.cs
- SqlUdtInfo.cs
- DecoratedNameAttribute.cs
- XmlReflectionMember.cs
- DrawingAttributesDefaultValueFactory.cs
- UnescapedXmlDiagnosticData.cs
- DesignerForm.cs
- XsltFunctions.cs
- RadioButtonAutomationPeer.cs
- CheckBoxList.cs
- TableChangeProcessor.cs
- PerformanceCounterPermissionEntry.cs
- MarkedHighlightComponent.cs
- ActivityCodeGenerator.cs
- AsymmetricKeyExchangeDeformatter.cs
- ResourceReferenceExpressionConverter.cs
- AudioException.cs
- JsonMessageEncoderFactory.cs
- HatchBrush.cs
- ObjectNotFoundException.cs
- SimpleType.cs
- ValidatorCompatibilityHelper.cs
- ApplicationSecurityInfo.cs
- ConcurrentStack.cs
- TextElementCollection.cs
- PointHitTestParameters.cs
- CompiledAction.cs
- EncodingDataItem.cs
- SQLBytesStorage.cs
- HttpContext.cs
- RichListBox.cs
- ScopelessEnumAttribute.cs
- ComponentChangedEvent.cs
- ExtensionFile.cs
- StringValidator.cs
- DriveNotFoundException.cs
- ReliableMessagingHelpers.cs
- DetailsViewInsertEventArgs.cs
- StaticSiteMapProvider.cs
- NamedElement.cs
- DesignOnlyAttribute.cs
- XmlLoader.cs
- LinkButton.cs
- HostingEnvironmentSection.cs
- ZipArchive.cs
- ADMembershipProvider.cs
- CounterSampleCalculator.cs
- DocumentXPathNavigator.cs
- LocalsItemDescription.cs
- ProxyWebPart.cs
- ConsoleKeyInfo.cs
- KeyValueConfigurationCollection.cs
- XamlSerializerUtil.cs
- HttpModuleActionCollection.cs
- GuidConverter.cs
- JumpPath.cs
- DynamicActivity.cs
- JoinElimination.cs
- XsdDateTime.cs
- DataGridViewToolTip.cs
- ReflectionUtil.cs
- SplineQuaternionKeyFrame.cs