Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // // ==--== 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- glyphs.cs
- SystemPens.cs
- RequestResizeEvent.cs
- SizeAnimation.cs
- mediaeventshelper.cs
- XmlSchemaAll.cs
- WasAdminWrapper.cs
- SettingsContext.cs
- WCFServiceClientProxyGenerator.cs
- Path.cs
- ConstrainedDataObject.cs
- InitializerFacet.cs
- TextParagraphView.cs
- WindowsServiceElement.cs
- DetailsViewInsertedEventArgs.cs
- UriSection.cs
- SmiRecordBuffer.cs
- CommunicationObjectAbortedException.cs
- GlyphCollection.cs
- DataStreams.cs
- TextRunProperties.cs
- TableColumn.cs
- OdbcEnvironment.cs
- _AuthenticationState.cs
- Win32Native.cs
- UserControlParser.cs
- PathFigureCollection.cs
- PropertyOverridesTypeEditor.cs
- SrgsElementList.cs
- VScrollBar.cs
- _NegotiateClient.cs
- Hex.cs
- ApplicationProxyInternal.cs
- Point.cs
- HttpRequestCacheValidator.cs
- Point4D.cs
- AmbientLight.cs
- KeyProperty.cs
- XmlDataDocument.cs
- SectionRecord.cs
- ProxySimple.cs
- CharacterBuffer.cs
- SHA1.cs
- ImageDrawing.cs
- UriSectionReader.cs
- WebRequest.cs
- RowSpanVector.cs
- DeviceOverridableAttribute.cs
- DataGridPageChangedEventArgs.cs
- PropertyChangeTracker.cs
- XsltArgumentList.cs
- Cursor.cs
- WorkflowExecutor.cs
- TypeUtils.cs
- ReliableMessagingVersion.cs
- TempFiles.cs
- ObjectPersistData.cs
- DesignerSerializationOptionsAttribute.cs
- AssemblyAssociatedContentFileAttribute.cs
- CoTaskMemHandle.cs
- TTSEvent.cs
- SpellerStatusTable.cs
- JournalEntry.cs
- LookupBindingPropertiesAttribute.cs
- GacUtil.cs
- CorrelationManager.cs
- SettingsPropertyWrongTypeException.cs
- recordstatefactory.cs
- CompensateDesigner.cs
- TableLayoutPanelCellPosition.cs
- Color.cs
- LoadWorkflowByInstanceKeyCommand.cs
- __ConsoleStream.cs
- ArgumentReference.cs
- WebPartHelpVerb.cs
- DesignSurfaceCollection.cs
- EnvelopedPkcs7.cs
- DetailsViewModeEventArgs.cs
- ReadContentAsBinaryHelper.cs
- BaseHashHelper.cs
- TransformPattern.cs
- ToolbarAUtomationPeer.cs
- SmiMetaDataProperty.cs
- SamlConditions.cs
- CacheManager.cs
- QueryableDataSourceHelper.cs
- DataSvcMapFile.cs
- MdiWindowListStrip.cs
- BeginEvent.cs
- ExpressionList.cs
- DataGridPreparingCellForEditEventArgs.cs
- TextContainer.cs
- MailMessageEventArgs.cs
- IResourceProvider.cs
- EventLogHandle.cs
- ForeignKeyFactory.cs
- SecurityResources.cs
- PreProcessInputEventArgs.cs
- ExpressionHelper.cs
- SectionInformation.cs