Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- VariantWrapper.cs
- DeviceContext.cs
- DataGridViewLinkCell.cs
- BufferModeSettings.cs
- OLEDB_Util.cs
- MILUtilities.cs
- StatusBarItemAutomationPeer.cs
- DataObjectSettingDataEventArgs.cs
- WCFServiceClientProxyGenerator.cs
- NetworkInterface.cs
- PageAction.cs
- PropertyEmitter.cs
- NewArrayExpression.cs
- CookieParameter.cs
- BoundField.cs
- WebPartCatalogCloseVerb.cs
- WebPartMenu.cs
- SynchronizingStream.cs
- PerfCounterSection.cs
- IImplicitResourceProvider.cs
- QueueException.cs
- TemplatedAdorner.cs
- CurrentChangingEventManager.cs
- CssClassPropertyAttribute.cs
- SecureStringHasher.cs
- AssemblyAttributes.cs
- ServerIdentity.cs
- HopperCache.cs
- TextEvent.cs
- DesignParameter.cs
- mansign.cs
- XmlSchemaComplexContentExtension.cs
- TimeEnumHelper.cs
- UncommonField.cs
- WindowsButton.cs
- QueryExpression.cs
- UrlPath.cs
- PropertyEntry.cs
- Walker.cs
- QuerySafeNavigator.cs
- LinkArea.cs
- Activator.cs
- ControlDesigner.cs
- MultiBindingExpression.cs
- DictionarySectionHandler.cs
- RemoteWebConfigurationHost.cs
- BmpBitmapEncoder.cs
- StringDictionary.cs
- UnmanagedBitmapWrapper.cs
- SafeNativeMethods.cs
- BamlTreeMap.cs
- MapPathBasedVirtualPathProvider.cs
- SettingsPropertyValueCollection.cs
- arclist.cs
- SqlEnums.cs
- XPathLexer.cs
- IpcChannel.cs
- XmlAttributeAttribute.cs
- PropertyGeneratedEventArgs.cs
- SafeBitVector32.cs
- ImageCollectionCodeDomSerializer.cs
- ButtonFlatAdapter.cs
- HebrewCalendar.cs
- XmlBinaryReader.cs
- COM2ComponentEditor.cs
- SimpleType.cs
- SecurityDocument.cs
- ContainerAction.cs
- GridViewRowCollection.cs
- PermissionSet.cs
- PostBackTrigger.cs
- PointAnimationUsingKeyFrames.cs
- TraceContextRecord.cs
- StyleTypedPropertyAttribute.cs
- PropertyMap.cs
- WebPartZone.cs
- CollectionsUtil.cs
- ConsumerConnectionPoint.cs
- UserPersonalizationStateInfo.cs
- IisTraceListener.cs
- QueryResult.cs
- TextCollapsingProperties.cs
- PassportAuthenticationModule.cs
- DetailsViewRow.cs
- RepeaterItemCollection.cs
- FlowPanelDesigner.cs
- PreservationFileWriter.cs
- BitmapEffectDrawingContextState.cs
- ExtendedPropertyDescriptor.cs
- UnknownBitmapEncoder.cs
- InternalConfigHost.cs
- Menu.cs
- SqlDataReader.cs
- XD.cs
- XmlSchemaAll.cs
- NonParentingControl.cs
- ILGenerator.cs
- SafeFileMappingHandle.cs
- LifetimeServices.cs
- PropertyIDSet.cs