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
- StaticResourceExtension.cs
- CodeTypeParameterCollection.cs
- SmiRequestExecutor.cs
- XmlSubtreeReader.cs
- ObjectListCommandsPage.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- WindowsGraphicsWrapper.cs
- GridViewEditEventArgs.cs
- UnmanagedMemoryStream.cs
- CallbackBehaviorAttribute.cs
- _IPv6Address.cs
- DataGridViewCheckBoxCell.cs
- GeneratedView.cs
- LinqDataSourceValidationException.cs
- TemplateAction.cs
- InputLangChangeRequestEvent.cs
- BmpBitmapDecoder.cs
- ActivityDelegate.cs
- OleDbPermission.cs
- TransactionException.cs
- HScrollBar.cs
- UnsafeNativeMethods.cs
- OracleConnectionFactory.cs
- DataGridViewRowHeaderCell.cs
- BuiltInExpr.cs
- CrossAppDomainChannel.cs
- TypeLoader.cs
- TypeUnloadedException.cs
- PagesChangedEventArgs.cs
- StylusEventArgs.cs
- FunctionImportMapping.cs
- OracleDataReader.cs
- ReadOnlyNameValueCollection.cs
- SoapSchemaExporter.cs
- ConnectionManagementElement.cs
- Helper.cs
- ColorIndependentAnimationStorage.cs
- BuildProvidersCompiler.cs
- SqlConnectionStringBuilder.cs
- __ConsoleStream.cs
- SequentialUshortCollection.cs
- RequestResizeEvent.cs
- EmbeddedMailObject.cs
- BaseCollection.cs
- NamespaceCollection.cs
- BasicKeyConstraint.cs
- CodeExporter.cs
- DataRecordInfo.cs
- XmlSchemaAnnotated.cs
- ImageButton.cs
- SafeNativeMethods.cs
- MachineSettingsSection.cs
- ManualResetEvent.cs
- CalloutQueueItem.cs
- Transform3DCollection.cs
- NumericUpDown.cs
- UrlAuthFailedErrorFormatter.cs
- DataTablePropertyDescriptor.cs
- SuppressMessageAttribute.cs
- CacheDict.cs
- CompilerTypeWithParams.cs
- SharedDp.cs
- RightsController.cs
- HostExecutionContextManager.cs
- FlowDocumentPageViewerAutomationPeer.cs
- DocumentPaginator.cs
- EncodingInfo.cs
- UIElement3D.cs
- MulticastOption.cs
- TraceUtils.cs
- PrintDialog.cs
- HtmlControl.cs
- XamlReader.cs
- CustomCredentialPolicy.cs
- RoleGroupCollection.cs
- SmiXetterAccessMap.cs
- EditorPartChrome.cs
- SessionPageStatePersister.cs
- ManagementInstaller.cs
- SiteMapHierarchicalDataSourceView.cs
- HtmlForm.cs
- ProfileSection.cs
- StrongNamePublicKeyBlob.cs
- BaseAutoFormat.cs
- InvalidDataException.cs
- Content.cs
- ListItemCollection.cs
- BrushMappingModeValidation.cs
- NaturalLanguageHyphenator.cs
- DebuggerAttributes.cs
- StartUpEventArgs.cs
- AmbientValueAttribute.cs
- BamlReader.cs
- basecomparevalidator.cs
- ThumbButtonInfo.cs
- SoapObjectInfo.cs
- OpCopier.cs
- EdmRelationshipRoleAttribute.cs
- FreeFormDragDropManager.cs
- Funcletizer.cs