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
- ProjectedSlot.cs
- EventHandlersStore.cs
- AutomationFocusChangedEventArgs.cs
- NumericUpDownAccelerationCollection.cs
- StatusBarPanelClickEvent.cs
- VectorAnimationUsingKeyFrames.cs
- CqlParserHelpers.cs
- StandardCommands.cs
- DataGridViewRowCancelEventArgs.cs
- WizardForm.cs
- StaticDataManager.cs
- ExitEventArgs.cs
- XamlTypeMapper.cs
- ToolboxItemImageConverter.cs
- QueryCursorEventArgs.cs
- AppDomain.cs
- TimeoutException.cs
- SqlGatherProducedAliases.cs
- Wizard.cs
- _Semaphore.cs
- CodeExpressionCollection.cs
- StrokeNodeData.cs
- PersistChildrenAttribute.cs
- ProgramPublisher.cs
- TreeWalker.cs
- LinkAreaEditor.cs
- Row.cs
- FieldNameLookup.cs
- ProjectionPruner.cs
- ParameterModifier.cs
- DateTimeUtil.cs
- NonNullItemCollection.cs
- EntityExpressionVisitor.cs
- ColorIndependentAnimationStorage.cs
- XmlSecureResolver.cs
- TextSpanModifier.cs
- XmlCountingReader.cs
- ContentWrapperAttribute.cs
- ListSourceHelper.cs
- OdbcDataAdapter.cs
- RegexMatch.cs
- BrowsableAttribute.cs
- SqlRowUpdatedEvent.cs
- OrderedDictionary.cs
- Duration.cs
- UpdateExpressionVisitor.cs
- AudioFormatConverter.cs
- HtmlEncodedRawTextWriter.cs
- TypeLoader.cs
- mediaeventshelper.cs
- DataGridViewColumn.cs
- CompilerWrapper.cs
- CodeGen.cs
- PopupRootAutomationPeer.cs
- DataServiceHostWrapper.cs
- ConstrainedGroup.cs
- PathFigureCollectionConverter.cs
- HttpHeaderCollection.cs
- ClientData.cs
- GroupBoxRenderer.cs
- HttpStreamMessage.cs
- SortAction.cs
- ClosableStream.cs
- HttpRawResponse.cs
- SqlCaseSimplifier.cs
- CompressStream.cs
- RoleBoolean.cs
- ExclusiveHandleList.cs
- DataGridState.cs
- Verify.cs
- IApplicationTrustManager.cs
- ScrollableControlDesigner.cs
- DataRowCollection.cs
- Vector3DConverter.cs
- Attributes.cs
- WebPartConnectionsCancelVerb.cs
- WebPartEventArgs.cs
- BaseWebProxyFinder.cs
- OdbcRowUpdatingEvent.cs
- RunClient.cs
- TabControl.cs
- SqlDataSourceDesigner.cs
- RSAOAEPKeyExchangeFormatter.cs
- HtmlAnchor.cs
- Normalization.cs
- TraceContext.cs
- RequestContext.cs
- RequestCachePolicyConverter.cs
- DateTimeHelper.cs
- SessionEndingCancelEventArgs.cs
- ValueConversionAttribute.cs
- ResourcesBuildProvider.cs
- WindowsListView.cs
- Array.cs
- EntityStoreSchemaFilterEntry.cs
- Buffer.cs
- ProcessProtocolHandler.cs
- ViewUtilities.cs
- ObjectHandle.cs
- CodeTypeParameterCollection.cs