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
- ConfigXmlReader.cs
- AggregateNode.cs
- XmlUTF8TextReader.cs
- wmiprovider.cs
- TextElementAutomationPeer.cs
- WmlMobileTextWriter.cs
- ConnectionManager.cs
- ValidationError.cs
- LinkConverter.cs
- ListControlConvertEventArgs.cs
- ConfigXmlWhitespace.cs
- wgx_render.cs
- PopupEventArgs.cs
- TableDetailsCollection.cs
- WindowsTab.cs
- SqlDataReaderSmi.cs
- ChannelServices.cs
- LayoutUtils.cs
- LockingPersistenceProvider.cs
- TdsParserSafeHandles.cs
- TemplateControl.cs
- FastPropertyAccessor.cs
- TemplateBamlRecordReader.cs
- BamlResourceContent.cs
- _StreamFramer.cs
- OdbcFactory.cs
- MultipartContentParser.cs
- TextEditorSpelling.cs
- AutoResizedEvent.cs
- DiscoveryInnerClientAdhoc11.cs
- ObjectDisposedException.cs
- FilePresentation.cs
- GiveFeedbackEventArgs.cs
- EntityDataSourceContainerNameConverter.cs
- OledbConnectionStringbuilder.cs
- EasingKeyFrames.cs
- Point4D.cs
- SessionEndingEventArgs.cs
- CapabilitiesPattern.cs
- WindowsStatic.cs
- InheritanceContextChangedEventManager.cs
- PerCallInstanceContextProvider.cs
- securitycriticaldataformultiplegetandset.cs
- BamlRecordWriter.cs
- RepeatBehaviorConverter.cs
- DependencyPropertyKind.cs
- SemanticAnalyzer.cs
- ConnectionConsumerAttribute.cs
- MetadataPropertyvalue.cs
- TextEditor.cs
- Size.cs
- Interlocked.cs
- SQLBytes.cs
- WebRequestModulesSection.cs
- LinqDataSourceStatusEventArgs.cs
- WriteFileContext.cs
- _NegotiateClient.cs
- SelectionPattern.cs
- Identifier.cs
- SkewTransform.cs
- WebPartEventArgs.cs
- FixedElement.cs
- PerfService.cs
- XamlValidatingReader.cs
- FrameworkContentElement.cs
- ParserExtension.cs
- RequestSecurityTokenResponse.cs
- LassoSelectionBehavior.cs
- IntPtr.cs
- CngAlgorithmGroup.cs
- Statements.cs
- BamlResourceSerializer.cs
- QueryContinueDragEvent.cs
- CanonicalizationDriver.cs
- FrameSecurityDescriptor.cs
- EventSourceCreationData.cs
- QilPatternFactory.cs
- ApplicationSecurityInfo.cs
- DataServiceRequestOfT.cs
- ResXResourceReader.cs
- Pair.cs
- TextTreeDeleteContentUndoUnit.cs
- MultipartIdentifier.cs
- AuthenticatedStream.cs
- QilGeneratorEnv.cs
- _ScatterGatherBuffers.cs
- WindowsPen.cs
- TreeViewBindingsEditorForm.cs
- DatePickerAutomationPeer.cs
- DetailsView.cs
- XmlArrayItemAttributes.cs
- BamlWriter.cs
- ToolboxComponentsCreatingEventArgs.cs
- MediaCommands.cs
- MenuAdapter.cs
- ProcessHostMapPath.cs
- ContractMapping.cs
- PackageProperties.cs
- BitmapFrameEncode.cs
- RtfToXamlLexer.cs