Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PatternMatchRules.cs
- ReadContentAsBinaryHelper.cs
- ConnectionPoolManager.cs
- Matrix3D.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- StylusPlugin.cs
- AutoResizedEvent.cs
- LinearGradientBrush.cs
- SvcMapFile.cs
- SystemIcmpV4Statistics.cs
- ConnectionManagementElementCollection.cs
- DataServiceEntityAttribute.cs
- XamlSerializationHelper.cs
- EncryptedData.cs
- PerformanceCounter.cs
- DrawingContextDrawingContextWalker.cs
- Msmq.cs
- GeneralTransform3DGroup.cs
- CorrelationToken.cs
- EmptyReadOnlyDictionaryInternal.cs
- PropertyHelper.cs
- GroupLabel.cs
- CodeParameterDeclarationExpression.cs
- ObjectView.cs
- TerminateSequence.cs
- ManagedIStream.cs
- SystemIPGlobalProperties.cs
- OdbcParameterCollection.cs
- QueryContinueDragEvent.cs
- Focus.cs
- MailHeaderInfo.cs
- XmlnsDictionary.cs
- TextOnlyOutput.cs
- MediaTimeline.cs
- OracleRowUpdatingEventArgs.cs
- ExtendedProtectionPolicyElement.cs
- DesignerUtils.cs
- ContentPlaceHolder.cs
- MultipartIdentifier.cs
- SetterBase.cs
- DomNameTable.cs
- CodeAttributeDeclarationCollection.cs
- InputQueue.cs
- ProcessInfo.cs
- PassportIdentity.cs
- CompositeDataBoundControl.cs
- ListCollectionView.cs
- SpellerInterop.cs
- StreamGeometry.cs
- Axis.cs
- Group.cs
- TextDecorationCollectionConverter.cs
- ValueUnavailableException.cs
- SoapClientProtocol.cs
- DataGridViewTextBoxEditingControl.cs
- DataGridViewRowStateChangedEventArgs.cs
- ChannelServices.cs
- SessionIDManager.cs
- Dispatcher.cs
- RuntimeConfig.cs
- InheritablePropertyChangeInfo.cs
- Selector.cs
- ApplyImportsAction.cs
- PenLineCapValidation.cs
- InternalEnumValidatorAttribute.cs
- XmlTypeAttribute.cs
- HwndHostAutomationPeer.cs
- DataSourceCache.cs
- RequestCacheEntry.cs
- IntranetCredentialPolicy.cs
- Canvas.cs
- ServiceThrottlingElement.cs
- MergeLocalizationDirectives.cs
- NGCSerializerAsync.cs
- OdbcEnvironmentHandle.cs
- FullTextBreakpoint.cs
- MetadataAssemblyHelper.cs
- ManifestBasedResourceGroveler.cs
- RenderData.cs
- ParserHooks.cs
- Sentence.cs
- BinaryObjectInfo.cs
- VolatileResourceManager.cs
- XhtmlTextWriter.cs
- Int32KeyFrameCollection.cs
- EntityViewContainer.cs
- GridViewCellAutomationPeer.cs
- PageParserFilter.cs
- FacetValueContainer.cs
- DesignerExtenders.cs
- log.cs
- ConfigPathUtility.cs
- RawStylusInputReport.cs
- LeftCellWrapper.cs
- EntityCommandCompilationException.cs
- ToolboxSnapDragDropEventArgs.cs
- NullableIntSumAggregationOperator.cs
- metadatamappinghashervisitor.cs
- HttpFileCollection.cs
- NavigationPropertyEmitter.cs