Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / NotFiniteNumberException.cs / 1 / NotFiniteNumberException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System { using System; using System.Runtime.Serialization; using System.Security.Permissions; [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class NotFiniteNumberException : ArithmeticException { private double _offendingNumber; public NotFiniteNumberException() : base(Environment.GetResourceString("Arg_NotFiniteNumberException")) { _offendingNumber = 0; SetErrorCode(__HResults.COR_E_NOTFINITENUMBER); } public NotFiniteNumberException(double offendingNumber) : base() { _offendingNumber = offendingNumber; SetErrorCode(__HResults.COR_E_NOTFINITENUMBER); } public NotFiniteNumberException(String message) : base(message) { _offendingNumber = 0; SetErrorCode(__HResults.COR_E_NOTFINITENUMBER); } public NotFiniteNumberException(String message, double offendingNumber) : base(message) { _offendingNumber = offendingNumber; SetErrorCode(__HResults.COR_E_NOTFINITENUMBER); } public NotFiniteNumberException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_NOTFINITENUMBER); } public NotFiniteNumberException(String message, double offendingNumber, Exception innerException) : base(message, innerException) { _offendingNumber = offendingNumber; SetErrorCode(__HResults.COR_E_NOTFINITENUMBER); } protected NotFiniteNumberException(SerializationInfo info, StreamingContext context) : base(info, context) { _offendingNumber = info.GetInt32("OffendingNumber"); } public double OffendingNumber { get { return _offendingNumber; } } [SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.SerializationFormatter)] public override void GetObjectData(SerializationInfo info, StreamingContext context) { if (info==null) { throw new ArgumentNullException("info"); } base.GetObjectData(info, context); info.AddValue("OffendingNumber", _offendingNumber, typeof(Int32)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RadioButtonStandardAdapter.cs
- DesignSurfaceEvent.cs
- CodeGenerator.cs
- GridSplitterAutomationPeer.cs
- ListViewGroup.cs
- SerializationHelper.cs
- CreateUserWizardAutoFormat.cs
- Screen.cs
- ToolStripArrowRenderEventArgs.cs
- AVElementHelper.cs
- ToolBar.cs
- BamlResourceSerializer.cs
- HtmlTableRow.cs
- ZipArchive.cs
- SpinLock.cs
- PageStatePersister.cs
- SqlUdtInfo.cs
- StreamReader.cs
- XmlBinaryWriterSession.cs
- RelationshipEntry.cs
- LinearGradientBrush.cs
- SelectionItemPattern.cs
- StrokeRenderer.cs
- SoapSchemaImporter.cs
- ItemCollection.cs
- RuntimeWrappedException.cs
- BackStopAuthenticationModule.cs
- BooleanFacetDescriptionElement.cs
- OleDbMetaDataFactory.cs
- DataTableMapping.cs
- XhtmlConformanceSection.cs
- DataGridViewCellEventArgs.cs
- OleDbMetaDataFactory.cs
- TreeViewEvent.cs
- While.cs
- HttpCacheParams.cs
- DbException.cs
- SQLBinaryStorage.cs
- NativeRightsManagementAPIsStructures.cs
- BindingCompleteEventArgs.cs
- Processor.cs
- AddingNewEventArgs.cs
- TimeSpanHelper.cs
- ObjectListCommandCollection.cs
- WebControlAdapter.cs
- DependencySource.cs
- BufferedMessageData.cs
- ToolZoneDesigner.cs
- TrustLevelCollection.cs
- CodeDOMUtility.cs
- ControlHelper.cs
- CodeTypeDelegate.cs
- DisposableCollectionWrapper.cs
- DbTransaction.cs
- DropDownList.cs
- DataControlLinkButton.cs
- XmlSchemaComplexContent.cs
- SimpleFieldTemplateFactory.cs
- VBIdentifierNameEditor.cs
- xmlglyphRunInfo.cs
- HitTestParameters.cs
- Matrix3D.cs
- ChannelManager.cs
- DrawingContext.cs
- GPPOINTF.cs
- GradientSpreadMethodValidation.cs
- sqlnorm.cs
- KernelTypeValidation.cs
- CodeTypeDeclaration.cs
- XPathBuilder.cs
- SAPICategories.cs
- PageCodeDomTreeGenerator.cs
- ErrorEventArgs.cs
- DataControlFieldsEditor.cs
- SqlReferenceCollection.cs
- Semaphore.cs
- ContentElement.cs
- TextEffect.cs
- PropertyValueChangedEvent.cs
- IdentitySection.cs
- SweepDirectionValidation.cs
- InstalledFontCollection.cs
- PeerToPeerException.cs
- IdentityModelStringsVersion1.cs
- DeploymentExceptionMapper.cs
- EmbeddedMailObjectsCollection.cs
- UpdateCompiler.cs
- ProcessHostMapPath.cs
- RuntimeResourceSet.cs
- MailAddress.cs
- TransportChannelListener.cs
- TripleDESCryptoServiceProvider.cs
- SimpleHandlerBuildProvider.cs
- XmlSchema.cs
- BaseContextMenu.cs
- PropertyGridCommands.cs
- DataListGeneralPage.cs
- XmlSchemaValidator.cs
- Certificate.cs
- PlanCompilerUtil.cs