Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DataGridViewCellCollection.cs
- ReflectionHelper.cs
- Win32Exception.cs
- ToolStripPanelRow.cs
- XmlMapping.cs
- SelectedPathEditor.cs
- DateTimeConverter2.cs
- FindCompletedEventArgs.cs
- HandleRef.cs
- RequestCachingSection.cs
- AutomationPeer.cs
- List.cs
- DataServiceContext.cs
- TypedReference.cs
- AVElementHelper.cs
- DataService.cs
- TextFormatter.cs
- ModelMemberCollection.cs
- ExternalFile.cs
- MenuItemAutomationPeer.cs
- TypeToStringValueConverter.cs
- UdpChannelFactory.cs
- DataSourceXmlTextReader.cs
- ContextMenuStrip.cs
- formatter.cs
- DataGridCaption.cs
- XmlSerializableServices.cs
- ModuleConfigurationInfo.cs
- TextSegment.cs
- _ProxyRegBlob.cs
- FunctionNode.cs
- ISFClipboardData.cs
- InsufficientMemoryException.cs
- SafeNativeMethods.cs
- ResourceDescriptionAttribute.cs
- LogFlushAsyncResult.cs
- EnumerableCollectionView.cs
- SqlExpander.cs
- Activator.cs
- ExpressionVisitor.cs
- AbandonedMutexException.cs
- ProjectionCamera.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ReceiveDesigner.xaml.cs
- Quad.cs
- ExceptionUtil.cs
- AvTrace.cs
- ContextMarshalException.cs
- ListItemParagraph.cs
- DataGridViewRowCollection.cs
- FontStretchConverter.cs
- SizeChangedInfo.cs
- ChangeToolStripParentVerb.cs
- QilValidationVisitor.cs
- TreeIterator.cs
- ExtensionWindow.cs
- RegexCode.cs
- ConfigurationPermission.cs
- DataSourceSelectArguments.cs
- BridgeDataReader.cs
- WpfXamlType.cs
- UrlParameterWriter.cs
- COM2Enum.cs
- ExportOptions.cs
- NamespaceExpr.cs
- PathFigureCollectionConverter.cs
- WebPartConnectionsCloseVerb.cs
- ObjectContext.cs
- MessageBox.cs
- DiffuseMaterial.cs
- EntityViewGenerationAttribute.cs
- SafeTimerHandle.cs
- DataServicePagingProviderWrapper.cs
- GenericTypeParameterBuilder.cs
- ZipIOModeEnforcingStream.cs
- CacheHelper.cs
- ImageDrawing.cs
- EventItfInfo.cs
- FeatureSupport.cs
- SuppressMergeCheckAttribute.cs
- SectionInformation.cs
- ItemContainerPattern.cs
- DynamicControlParameter.cs
- CodeAccessSecurityEngine.cs
- HtmlButton.cs
- DropDownHolder.cs
- ToolboxBitmapAttribute.cs
- Html32TextWriter.cs
- HierarchicalDataBoundControl.cs
- DocumentViewerBase.cs
- ReadOnlyDictionary.cs
- DesignSurfaceEvent.cs
- HyperLinkColumn.cs
- CryptoApi.cs
- Math.cs
- objectresult_tresulttype.cs
- MethodToken.cs
- PolicyStatement.cs
- MetaType.cs
- EventEntry.cs