Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XpsSerializerWriter.cs
- DecimalAnimation.cs
- XappLauncher.cs
- ConfigXmlSignificantWhitespace.cs
- TextElementCollectionHelper.cs
- QilStrConcatenator.cs
- SafeRightsManagementQueryHandle.cs
- XmlSchemaExporter.cs
- BamlStream.cs
- BoundPropertyEntry.cs
- QueryOutputWriter.cs
- CroppedBitmap.cs
- Camera.cs
- ToolStripPanelRenderEventArgs.cs
- SqlCommandSet.cs
- XmlDataContract.cs
- XslAst.cs
- ScriptManagerProxy.cs
- MessagingDescriptionAttribute.cs
- RegexParser.cs
- SyndicationItem.cs
- SrgsOneOf.cs
- RangeBase.cs
- GeometryModel3D.cs
- ListViewGroupConverter.cs
- URI.cs
- EncoderParameters.cs
- TrustLevelCollection.cs
- RightsManagementEncryptionTransform.cs
- XPathDocumentBuilder.cs
- UIServiceHelper.cs
- DecimalAverageAggregationOperator.cs
- ClientTargetSection.cs
- MetadataUtilsSmi.cs
- HelpPage.cs
- AssociationTypeEmitter.cs
- OperatorExpressions.cs
- DbConnectionStringBuilder.cs
- XPathArrayIterator.cs
- ReadOnlyDictionary.cs
- Window.cs
- WebPartHeaderCloseVerb.cs
- SoapFormatExtensions.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- BindingFormattingDialog.cs
- ClipboardData.cs
- TrackingRecord.cs
- MessageQueueInstaller.cs
- IncrementalReadDecoders.cs
- _SSPISessionCache.cs
- StateRuntime.cs
- EditorPart.cs
- ProcessHost.cs
- Group.cs
- TypeEnumerableViewSchema.cs
- HtmlInputPassword.cs
- XsltQilFactory.cs
- WebServiceTypeData.cs
- PeerInvitationResponse.cs
- EventLogPermissionHolder.cs
- SqlBulkCopyColumnMapping.cs
- DispatchProxy.cs
- SmtpAuthenticationManager.cs
- Compiler.cs
- UxThemeWrapper.cs
- DragSelectionMessageFilter.cs
- SchemaNamespaceManager.cs
- StrokeNodeOperations.cs
- TypeContext.cs
- XmlResolver.cs
- bidPrivateBase.cs
- RawStylusInputCustomDataList.cs
- CompoundFileDeflateTransform.cs
- PriorityBindingExpression.cs
- PropertyChangeTracker.cs
- BitmapVisualManager.cs
- BuildProviderUtils.cs
- ExtendedPropertyDescriptor.cs
- Single.cs
- ProviderConnectionPointCollection.cs
- CryptoStream.cs
- CommentEmitter.cs
- _CommandStream.cs
- TableParagraph.cs
- UInt32Converter.cs
- _NTAuthentication.cs
- DataRelation.cs
- PointUtil.cs
- BaseCAMarshaler.cs
- AutomationIdentifier.cs
- DynamicDiscoSearcher.cs
- Reference.cs
- OracleFactory.cs
- SerialStream.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- Serializer.cs
- Ports.cs
- DataGridViewRowCancelEventArgs.cs
- DataGridViewTextBoxColumn.cs
- Viewport3DAutomationPeer.cs