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
- FixedSOMElement.cs
- BindingValueChangedEventArgs.cs
- TreeView.cs
- AlignmentXValidation.cs
- HyperLinkStyle.cs
- ContentWrapperAttribute.cs
- ItemCollection.cs
- EventSinkActivityDesigner.cs
- ScriptComponentDescriptor.cs
- Triplet.cs
- OleDbPropertySetGuid.cs
- RoutedEventConverter.cs
- RichTextBoxDesigner.cs
- DocumentScope.cs
- Options.cs
- ResourceDescriptionAttribute.cs
- MimeMultiPart.cs
- ControlAdapter.cs
- LookupNode.cs
- CodeEventReferenceExpression.cs
- InputLanguage.cs
- COM2IPerPropertyBrowsingHandler.cs
- ToolStripDropTargetManager.cs
- DesignerDataParameter.cs
- StyleSelector.cs
- StylusPointDescription.cs
- Point3DAnimationUsingKeyFrames.cs
- X509CertificateCollection.cs
- Error.cs
- ServiceModelConfigurationElementCollection.cs
- WorkflowShape.cs
- RSAPKCS1SignatureDeformatter.cs
- WebPartTransformerCollection.cs
- XmlEncoding.cs
- WindowsScrollBarBits.cs
- BufferedGraphicsContext.cs
- CollectionChangedEventManager.cs
- String.cs
- BaseResourcesBuildProvider.cs
- HttpHandlerAction.cs
- WindowsServiceCredential.cs
- DiagnosticsConfiguration.cs
- SmiConnection.cs
- URLAttribute.cs
- TextServicesCompartmentEventSink.cs
- RangeValuePatternIdentifiers.cs
- RuleCache.cs
- DecimalFormatter.cs
- IPHostEntry.cs
- DetailsViewInsertEventArgs.cs
- XmlSchemaSimpleTypeUnion.cs
- RuntimeHandles.cs
- PersistenceTypeAttribute.cs
- TimeSpanValidatorAttribute.cs
- PageCodeDomTreeGenerator.cs
- SmiEventSink.cs
- WebServiceResponseDesigner.cs
- LocalizationCodeDomSerializer.cs
- FixedSOMTableRow.cs
- Quad.cs
- GifBitmapDecoder.cs
- ObjectTypeMapping.cs
- LayoutEvent.cs
- ValidationSummary.cs
- BitArray.cs
- CustomExpression.cs
- ReturnEventArgs.cs
- XmlMembersMapping.cs
- ContractReference.cs
- CatalogPartCollection.cs
- LassoHelper.cs
- ResXBuildProvider.cs
- CroppedBitmap.cs
- SqlUtils.cs
- RadioButton.cs
- WsdlImporterElement.cs
- WpfKnownMember.cs
- DataContractSerializerSection.cs
- COMException.cs
- WinCategoryAttribute.cs
- Point3DCollection.cs
- diagnosticsswitches.cs
- EmulateRecognizeCompletedEventArgs.cs
- SQLStringStorage.cs
- DesignerCommandAdapter.cs
- LightweightCodeGenerator.cs
- SoapProtocolImporter.cs
- Attachment.cs
- PersonalizationStateQuery.cs
- BuildProviderUtils.cs
- MessageTransmitTraceRecord.cs
- ObjectListItem.cs
- GeneralTransformGroup.cs
- AppSettings.cs
- TextFormatterHost.cs
- RouteData.cs
- Switch.cs
- Stylus.cs
- LayoutEditorPart.cs
- EtwTrackingParticipant.cs