Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- XmlSchemaSubstitutionGroup.cs
- DataColumnCollection.cs
- ObjectDataSourceFilteringEventArgs.cs
- EmptyReadOnlyDictionaryInternal.cs
- Pipe.cs
- DesignTimeSiteMapProvider.cs
- ListenerElementsCollection.cs
- DataGridCommandEventArgs.cs
- TextModifier.cs
- DATA_BLOB.cs
- ImageAnimator.cs
- InvokeProviderWrapper.cs
- WebPartEditorOkVerb.cs
- WindowPattern.cs
- ItemType.cs
- HTMLTagNameToTypeMapper.cs
- NativeMethods.cs
- designeractionbehavior.cs
- CompilerCollection.cs
- CapacityStreamGeometryContext.cs
- Binding.cs
- entityreference_tresulttype.cs
- DataGridViewDesigner.cs
- EmbossBitmapEffect.cs
- StdValidatorsAndConverters.cs
- TraversalRequest.cs
- XmlSignificantWhitespace.cs
- GifBitmapDecoder.cs
- EntityViewGenerator.cs
- TypeExtension.cs
- ObjectDataSourceView.cs
- Sql8ExpressionRewriter.cs
- PathParser.cs
- CodeIdentifier.cs
- XmlFormatReaderGenerator.cs
- CommandHelper.cs
- X509ChainPolicy.cs
- SizeKeyFrameCollection.cs
- TextElementEnumerator.cs
- WindowsPen.cs
- QueryIntervalOp.cs
- NavigationCommands.cs
- ProtocolsConfiguration.cs
- HttpHandlerAction.cs
- OverrideMode.cs
- ValidateNames.cs
- DESCryptoServiceProvider.cs
- SourceFileBuildProvider.cs
- DataGridViewRowConverter.cs
- ProbeMatchesMessageCD1.cs
- CompoundFileIOPermission.cs
- MdiWindowListItemConverter.cs
- XamlPoint3DCollectionSerializer.cs
- ExceptionHandler.cs
- MetadataItem.cs
- WaitingCursor.cs
- WaitForChangedResult.cs
- RegexNode.cs
- XamlReaderHelper.cs
- MbpInfo.cs
- AutomationPatternInfo.cs
- QueryHandler.cs
- Int16KeyFrameCollection.cs
- PolyBezierSegmentFigureLogic.cs
- EmptyEnumerable.cs
- TrackBarDesigner.cs
- _RequestCacheProtocol.cs
- EffectiveValueEntry.cs
- EntityDataSourceStatementEditorForm.cs
- InternalEnumValidatorAttribute.cs
- XmlDownloadManager.cs
- ReversePositionQuery.cs
- IIS7WorkerRequest.cs
- GeneralEndpointIdentity.cs
- RouteParser.cs
- TcpSocketManager.cs
- LineGeometry.cs
- SqlBooleanizer.cs
- DataException.cs
- WSHttpTransportSecurityElement.cs
- CompilerInfo.cs
- GridViewEditEventArgs.cs
- ClientSponsor.cs
- UnitySerializationHolder.cs
- EntityContainer.cs
- FileInfo.cs
- SubMenuStyleCollectionEditor.cs
- InternalConfigSettingsFactory.cs
- ProtectedConfigurationSection.cs
- ProcessExitedException.cs
- AuthenticateEventArgs.cs
- COM2PropertyDescriptor.cs
- xdrvalidator.cs
- SystemShuttingDownException.cs
- FormViewAutoFormat.cs
- BaseCodeDomTreeGenerator.cs
- EnumerableCollectionView.cs
- ProxySimple.cs
- UniqueIdentifierService.cs
- MobileRedirect.cs