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
- ScrollableControl.cs
- TypefaceCollection.cs
- PublisherIdentityPermission.cs
- ELinqQueryState.cs
- ContractCodeDomInfo.cs
- DESCryptoServiceProvider.cs
- HttpRequest.cs
- OleDbDataReader.cs
- PackWebRequestFactory.cs
- AsymmetricCryptoHandle.cs
- Scene3D.cs
- XmlSchemaSimpleContentRestriction.cs
- AmbiguousMatchException.cs
- TextTreeObjectNode.cs
- LockRenewalTask.cs
- EventLogTraceListener.cs
- XmlResolver.cs
- NullableLongSumAggregationOperator.cs
- SizeAnimationBase.cs
- ApplicationBuildProvider.cs
- XmlIgnoreAttribute.cs
- ConnectionString.cs
- TableItemStyle.cs
- GroupStyle.cs
- BamlLocalizableResource.cs
- ProgressBar.cs
- TextBoxBaseDesigner.cs
- TypedColumnHandler.cs
- CompilerInfo.cs
- CqlIdentifiers.cs
- TreeViewImageGenerator.cs
- SQLDecimalStorage.cs
- sqlinternaltransaction.cs
- XmlRootAttribute.cs
- Visitors.cs
- SynchronousChannel.cs
- ControlPaint.cs
- WizardStepBase.cs
- EncodingDataItem.cs
- Pen.cs
- ToolCreatedEventArgs.cs
- ConfigXmlComment.cs
- XamlReaderHelper.cs
- RuntimeCompatibilityAttribute.cs
- ISAPIApplicationHost.cs
- GridViewRowPresenterBase.cs
- PropertyStore.cs
- Globals.cs
- CommandField.cs
- SoapFormatterSinks.cs
- InputEventArgs.cs
- GeometryCombineModeValidation.cs
- EntityContainerEntitySetDefiningQuery.cs
- DataGridTableCollection.cs
- RuntimeHandles.cs
- BufferBuilder.cs
- GlyphRun.cs
- DelegateArgumentValue.cs
- HashLookup.cs
- AncillaryOps.cs
- GridErrorDlg.cs
- XPathPatternBuilder.cs
- NodeFunctions.cs
- Boolean.cs
- WinFormsUtils.cs
- OdbcException.cs
- EndpointConfigContainer.cs
- RuntimeConfigurationRecord.cs
- ConfigurationStrings.cs
- DefaultEventAttribute.cs
- ConnectionProviderAttribute.cs
- XmlName.cs
- OperationContextScope.cs
- ConfigXmlReader.cs
- HybridDictionary.cs
- Renderer.cs
- SortQuery.cs
- ListDictionaryInternal.cs
- EditCommandColumn.cs
- WebPartEditorCancelVerb.cs
- BaseDataList.cs
- ThicknessAnimationUsingKeyFrames.cs
- DiagnosticsConfiguration.cs
- PackagePart.cs
- Bold.cs
- OracleEncoding.cs
- InlineCollection.cs
- ObjectListDesigner.cs
- FileLogRecordHeader.cs
- WebBrowser.cs
- WizardDesigner.cs
- DataShape.cs
- ConfigurationPropertyCollection.cs
- CapacityStreamGeometryContext.cs
- URIFormatException.cs
- SettingsAttributes.cs
- Base64WriteStateInfo.cs
- ConfigXmlSignificantWhitespace.cs
- RecognizeCompletedEventArgs.cs
- DetailsViewDesigner.cs