Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / NullReferenceException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- PenContexts.cs
- Button.cs
- OptimalTextSource.cs
- DataRowExtensions.cs
- Vars.cs
- ObjectHandle.cs
- StatusBarPanelClickEvent.cs
- DataKeyArray.cs
- Point4DValueSerializer.cs
- Debug.cs
- TableColumnCollectionInternal.cs
- StringValueSerializer.cs
- ScalarConstant.cs
- EmbeddedMailObject.cs
- ElementHostPropertyMap.cs
- TreeViewEvent.cs
- _AutoWebProxyScriptEngine.cs
- XmlSchemaSimpleTypeList.cs
- WebPartDeleteVerb.cs
- CommandID.cs
- IncrementalCompileAnalyzer.cs
- OpenFileDialog.cs
- XmlTextReaderImplHelpers.cs
- AsyncPostBackTrigger.cs
- AssociationSet.cs
- SafeCryptoHandles.cs
- WebPartDescriptionCollection.cs
- KeyFrames.cs
- DelegateBodyWriter.cs
- FileDialog.cs
- OdbcStatementHandle.cs
- MemberJoinTreeNode.cs
- XmlReader.cs
- PaginationProgressEventArgs.cs
- TextOutput.cs
- TokenBasedSet.cs
- DecoderNLS.cs
- ConnectionManagementSection.cs
- LinqDataView.cs
- WindowsIdentity.cs
- FontCollection.cs
- DbCommandTree.cs
- NegotiateStream.cs
- ParseNumbers.cs
- EventLogEntryCollection.cs
- PasswordRecovery.cs
- ElementsClipboardData.cs
- ValidationSummaryDesigner.cs
- Codec.cs
- RegexGroupCollection.cs
- EmbeddedMailObjectsCollection.cs
- SortQuery.cs
- InfoCardKeyedHashAlgorithm.cs
- CommandPlan.cs
- AsnEncodedData.cs
- FormsAuthenticationModule.cs
- SoapDocumentMethodAttribute.cs
- ParameterReplacerVisitor.cs
- EarlyBoundInfo.cs
- BaseDataBoundControl.cs
- InputReportEventArgs.cs
- PreservationFileReader.cs
- SqlParameter.cs
- AsymmetricAlgorithm.cs
- HitTestParameters.cs
- XmlSerializerVersionAttribute.cs
- SqlMethodCallConverter.cs
- TaskHelper.cs
- OperationResponse.cs
- HtmlTableRow.cs
- ValidationRuleCollection.cs
- PageRanges.cs
- TableLayout.cs
- EdmItemError.cs
- InternalUserCancelledException.cs
- MetadataExchangeClient.cs
- XamlVector3DCollectionSerializer.cs
- GroupItemAutomationPeer.cs
- GatewayIPAddressInformationCollection.cs
- EventProviderWriter.cs
- ColorTranslator.cs
- SequentialActivityDesigner.cs
- AssociationSet.cs
- ProfileGroupSettingsCollection.cs
- RequestQueryParser.cs
- LabelAutomationPeer.cs
- _NativeSSPI.cs
- dataprotectionpermission.cs
- AttributeCollection.cs
- MemberHolder.cs
- FrameworkPropertyMetadata.cs
- MessageQueueInstaller.cs
- InvokePattern.cs
- NamedElement.cs
- CollectionChangedEventManager.cs
- DesignerSerializationVisibilityAttribute.cs
- AnnotationResourceChangedEventArgs.cs
- OutputCacheModule.cs
- IUnknownConstantAttribute.cs
- CustomErrorCollection.cs