Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / NullReferenceException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- ButtonFlatAdapter.cs
- TrailingSpaceComparer.cs
- HttpHandlerActionCollection.cs
- MSAANativeProvider.cs
- SocketPermission.cs
- IndentTextWriter.cs
- XmlSiteMapProvider.cs
- PolyBezierSegment.cs
- StructureChangedEventArgs.cs
- EntityContainerEmitter.cs
- SiteMapNodeItem.cs
- InitializationEventAttribute.cs
- EraserBehavior.cs
- XmlSchemaProviderAttribute.cs
- GridProviderWrapper.cs
- AutomationPattern.cs
- HttpResponse.cs
- QilInvokeLateBound.cs
- RepeaterDesigner.cs
- EntityTypeEmitter.cs
- ListViewDeletedEventArgs.cs
- InfoCardSymmetricCrypto.cs
- SqlIdentifier.cs
- MessageDecoder.cs
- XamlTreeBuilder.cs
- XmlQueryOutput.cs
- SqlDataSourceCustomCommandEditor.cs
- AppDomain.cs
- InputReport.cs
- LZCodec.cs
- ToolStripArrowRenderEventArgs.cs
- ComponentCommands.cs
- ReferenceService.cs
- TextParaClient.cs
- SocketManager.cs
- EditBehavior.cs
- DebugHandleTracker.cs
- ExecutionScope.cs
- arabicshape.cs
- XamlGridLengthSerializer.cs
- Border.cs
- DesignerCommandSet.cs
- util.cs
- SecurityHelper.cs
- Delegate.cs
- XLinq.cs
- OutputWindow.cs
- GradientStop.cs
- CharStorage.cs
- GenericUriParser.cs
- ElementMarkupObject.cs
- PaperSize.cs
- ToolStripSeparatorRenderEventArgs.cs
- SoapDocumentMethodAttribute.cs
- Int32CAMarshaler.cs
- _SslStream.cs
- ContentElement.cs
- MtomMessageEncoder.cs
- RegexWorker.cs
- XComponentModel.cs
- PointAnimationClockResource.cs
- XmlAttributes.cs
- DocumentSchemaValidator.cs
- StructuredProperty.cs
- NavigationWindow.cs
- MSAAWinEventWrap.cs
- RangeValidator.cs
- UIElementIsland.cs
- AnnotationObservableCollection.cs
- Hyperlink.cs
- ThaiBuddhistCalendar.cs
- DataProtection.cs
- HttpResponse.cs
- EventlogProvider.cs
- BuildProvidersCompiler.cs
- NativeMethods.cs
- followingsibling.cs
- KeysConverter.cs
- DictionaryEntry.cs
- BinaryObjectReader.cs
- NullableLongAverageAggregationOperator.cs
- ProviderIncompatibleException.cs
- ReaderWriterLock.cs
- Literal.cs
- DbModificationCommandTree.cs
- KeyboardEventArgs.cs
- ExtensionWindow.cs
- SystemIPGlobalStatistics.cs
- DebuggerService.cs
- TypeRefElement.cs
- listitem.cs
- CodeArgumentReferenceExpression.cs
- ThrowHelper.cs
- WebPartConnectionsCancelVerb.cs
- CollectionTraceRecord.cs
- GridViewRowEventArgs.cs
- ScrollBar.cs
- Point3DConverter.cs
- CodeThrowExceptionStatement.cs
- NameObjectCollectionBase.cs