Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ZipIOLocalFileBlock.cs
- CodeDelegateInvokeExpression.cs
- ObsoleteAttribute.cs
- SubqueryRules.cs
- TrackingCondition.cs
- ETagAttribute.cs
- XPathQilFactory.cs
- OLEDB_Enum.cs
- ItemCheckEvent.cs
- BatchServiceHost.cs
- BuildDependencySet.cs
- EntityDataSourceViewSchema.cs
- ThicknessAnimationUsingKeyFrames.cs
- COM2Properties.cs
- DesignerAttribute.cs
- ProvidersHelper.cs
- WebCategoryAttribute.cs
- ByteStream.cs
- ByteConverter.cs
- CodeTypeMember.cs
- TeredoHelper.cs
- UserControlParser.cs
- EncryptedData.cs
- Instrumentation.cs
- Query.cs
- BigInt.cs
- BamlTreeMap.cs
- ExceptionUtil.cs
- FilterQuery.cs
- HttpModuleAction.cs
- SelectionProviderWrapper.cs
- DynamicUpdateCommand.cs
- CodeCastExpression.cs
- QuaternionRotation3D.cs
- SqlCacheDependencyDatabase.cs
- MatrixValueSerializer.cs
- TransformPatternIdentifiers.cs
- ProxyWebPartManager.cs
- ByteRangeDownloader.cs
- Pair.cs
- comcontractssection.cs
- RepeatBehaviorConverter.cs
- FlowDecisionLabelFeature.cs
- AttributeUsageAttribute.cs
- Util.cs
- SmtpReplyReader.cs
- DataServiceHostWrapper.cs
- ShaderEffect.cs
- HttpWriter.cs
- FreezableCollection.cs
- ClientScriptManagerWrapper.cs
- XmlAutoDetectWriter.cs
- SecurityDocument.cs
- DockPattern.cs
- PropertySegmentSerializer.cs
- BuildManagerHost.cs
- keycontainerpermission.cs
- wmiprovider.cs
- ChangePasswordAutoFormat.cs
- SimpleExpression.cs
- DefaultBindingPropertyAttribute.cs
- RoutedPropertyChangedEventArgs.cs
- ObjectItemCollection.cs
- X509Certificate.cs
- HttpHeaderCollection.cs
- CompoundFileReference.cs
- CatalogPartChrome.cs
- XmlSchemaInclude.cs
- ListGeneralPage.cs
- Highlights.cs
- IndentedTextWriter.cs
- ScriptingProfileServiceSection.cs
- AuthorizationPolicyTypeElementCollection.cs
- XamlSerializationHelper.cs
- NativeMethods.cs
- EndOfStreamException.cs
- IDictionary.cs
- CharConverter.cs
- MediaElement.cs
- ConstructorArgumentAttribute.cs
- DataBindingCollection.cs
- CodeSubDirectory.cs
- EventNotify.cs
- ExtensionQuery.cs
- DefaultAuthorizationContext.cs
- ToolBarTray.cs
- BackStopAuthenticationModule.cs
- SqlDataSourceFilteringEventArgs.cs
- CompilerErrorCollection.cs
- XmlLanguage.cs
- ToolStrip.cs
- XpsFilter.cs
- SamlEvidence.cs
- WarningException.cs
- BitmapEffect.cs
- PasswordRecovery.cs
- SrgsOneOf.cs
- IItemProperties.cs
- EncryptedType.cs
- CompositeDataBoundControl.cs