Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ZeroOpNode.cs
- ConfigsHelper.cs
- DataTableExtensions.cs
- OleDbRowUpdatingEvent.cs
- IList.cs
- IndentTextWriter.cs
- DbParameterCollection.cs
- SiteMapHierarchicalDataSourceView.cs
- Debug.cs
- OrthographicCamera.cs
- ProfileGroupSettings.cs
- Camera.cs
- LocalizabilityAttribute.cs
- ImageEditor.cs
- SamlAuthorityBinding.cs
- StandardCommandToolStripMenuItem.cs
- LayoutManager.cs
- COM2Properties.cs
- ProxyWebPartManager.cs
- ValueQuery.cs
- DynamicControl.cs
- XmlSchemaComplexContentRestriction.cs
- KeyValueSerializer.cs
- SortKey.cs
- TextAutomationPeer.cs
- ConfigPathUtility.cs
- ReferencedType.cs
- ViewBox.cs
- DrawingGroupDrawingContext.cs
- AttachInfo.cs
- CalendarAutoFormat.cs
- dataprotectionpermission.cs
- ThreadInterruptedException.cs
- Condition.cs
- SizeFConverter.cs
- SpellerHighlightLayer.cs
- ArraySubsetEnumerator.cs
- JsonFormatWriterGenerator.cs
- TypeElement.cs
- IdleTimeoutMonitor.cs
- DataQuery.cs
- PageRanges.cs
- FtpRequestCacheValidator.cs
- DataStreams.cs
- ConfigXmlDocument.cs
- RegionData.cs
- CompileXomlTask.cs
- DynamicILGenerator.cs
- QueryCreatedEventArgs.cs
- DbTransaction.cs
- DataGridViewToolTip.cs
- baseshape.cs
- filewebresponse.cs
- ExtenderProvidedPropertyAttribute.cs
- SubMenuStyleCollection.cs
- DesignerActionMethodItem.cs
- SqlAliasesReferenced.cs
- KeyConstraint.cs
- OleDbInfoMessageEvent.cs
- ZoneLinkButton.cs
- HebrewNumber.cs
- PackageRelationshipCollection.cs
- HeaderPanel.cs
- DescendantQuery.cs
- IRCollection.cs
- SerializationInfoEnumerator.cs
- BaseTypeViewSchema.cs
- HostingEnvironment.cs
- BookmarkScopeManager.cs
- HyperLink.cs
- PackWebRequest.cs
- DataGridViewTopRowAccessibleObject.cs
- _ContextAwareResult.cs
- SortFieldComparer.cs
- FontUnit.cs
- CodeAssignStatement.cs
- ThreadInterruptedException.cs
- WebConfigurationManager.cs
- DescendantBaseQuery.cs
- DataGridViewDataErrorEventArgs.cs
- TranslateTransform3D.cs
- Zone.cs
- SqlCommandBuilder.cs
- PrintDialog.cs
- VariableExpressionConverter.cs
- MetadataCacheItem.cs
- GlobalItem.cs
- HtmlForm.cs
- SizeChangedInfo.cs
- VersionedStreamOwner.cs
- CutCopyPasteHelper.cs
- XmlSchemaSimpleContent.cs
- SQLMembershipProvider.cs
- ClipboardProcessor.cs
- SearchForVirtualItemEventArgs.cs
- XamlSerializerUtil.cs
- FloatSumAggregationOperator.cs
- ConstructorBuilder.cs
- DbConnectionPoolGroup.cs
- Volatile.cs