Code:
/ DotNET / DotNET / 8.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
- GradientBrush.cs
- QueryConverter.cs
- ComponentChangedEvent.cs
- IdentityHolder.cs
- FileVersion.cs
- ReferenceList.cs
- ButtonChrome.cs
- AccessDataSourceView.cs
- Html32TextWriter.cs
- ValueQuery.cs
- CapabilitiesSection.cs
- DateTimeFormatInfoScanner.cs
- TypeInfo.cs
- NameValueSectionHandler.cs
- ReceiveActivityValidator.cs
- ItemCheckedEvent.cs
- GridViewCommandEventArgs.cs
- TransformCollection.cs
- WindowsAuthenticationEventArgs.cs
- HelpEvent.cs
- XmlProcessingInstruction.cs
- OrderedDictionary.cs
- XamlDesignerSerializationManager.cs
- SqlWorkflowInstanceStore.cs
- C14NUtil.cs
- PropertyDescriptorCollection.cs
- BrowserCapabilitiesCodeGenerator.cs
- SmtpTransport.cs
- MenuItem.cs
- TransactionsSectionGroup.cs
- ActivationArguments.cs
- ZipIOExtraField.cs
- UpdateEventArgs.cs
- EdmSchemaAttribute.cs
- XmlStreamStore.cs
- HttpAsyncResult.cs
- _ConnectionGroup.cs
- WindowsFormsHostPropertyMap.cs
- CompositeKey.cs
- HttpValueCollection.cs
- CommonObjectSecurity.cs
- CurrentChangedEventManager.cs
- initElementDictionary.cs
- PlatformCulture.cs
- BooleanFacetDescriptionElement.cs
- CodeTypeDelegate.cs
- GroupStyle.cs
- ProfileModule.cs
- WindowsRichEditRange.cs
- XslCompiledTransform.cs
- TableRowGroup.cs
- TextPointer.cs
- ScrollEvent.cs
- TypeInitializationException.cs
- httpserverutility.cs
- ReflectPropertyDescriptor.cs
- CryptoKeySecurity.cs
- StoryFragments.cs
- HyperLinkColumn.cs
- Identifier.cs
- ParallelSeparator.xaml.cs
- EntitySqlException.cs
- PointAnimationBase.cs
- GroupBox.cs
- KoreanCalendar.cs
- CultureTable.cs
- MatrixTransform3D.cs
- DesignerSerializationOptionsAttribute.cs
- ListComponentEditorPage.cs
- Speller.cs
- InvokePatternIdentifiers.cs
- HttpRequestWrapper.cs
- ApplicationSecurityManager.cs
- TextSegment.cs
- XamlRtfConverter.cs
- XmlConvert.cs
- SqlDeflator.cs
- BoundPropertyEntry.cs
- SectionInformation.cs
- ServerValidateEventArgs.cs
- StringUtil.cs
- CodeTypeDeclaration.cs
- NetworkStream.cs
- DataBoundControlDesigner.cs
- BindingCollection.cs
- SequenceNumber.cs
- PrimaryKeyTypeConverter.cs
- BuildManager.cs
- DataGridBoundColumn.cs
- OrderPreservingPipeliningSpoolingTask.cs
- BitStack.cs
- TypeValidationEventArgs.cs
- ServerValidateEventArgs.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- PropertyItemInternal.cs
- PropertyGridCommands.cs
- ExtractorMetadata.cs
- ClientData.cs
- SmiContext.cs
- UTF8Encoding.cs