Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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)); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FrameworkElementFactoryMarkupObject.cs
- SessionStateItemCollection.cs
- OrderByExpression.cs
- StrokeNodeOperations2.cs
- OLEDB_Util.cs
- DataTablePropertyDescriptor.cs
- ApplicationFileParser.cs
- EntityClassGenerator.cs
- UnsafeNativeMethods.cs
- IPipelineRuntime.cs
- SqlDataSourceView.cs
- ValidationSummary.cs
- InstanceBehavior.cs
- DialogResultConverter.cs
- QueryCoreOp.cs
- SoapAttributeAttribute.cs
- BindingManagerDataErrorEventArgs.cs
- DbConnectionPoolIdentity.cs
- CompressedStack.cs
- SelectionProviderWrapper.cs
- X509RawDataKeyIdentifierClause.cs
- SafeHandles.cs
- EtwTrace.cs
- XmlDataSourceView.cs
- ComponentDispatcher.cs
- Scheduling.cs
- Separator.cs
- NativeObjectSecurity.cs
- DataTableReader.cs
- HttpGetProtocolImporter.cs
- QuaternionKeyFrameCollection.cs
- BuildProviderUtils.cs
- InheritanceAttribute.cs
- columnmapfactory.cs
- IgnoreDeviceFilterElementCollection.cs
- ConstraintConverter.cs
- PasswordTextNavigator.cs
- RoutedEvent.cs
- XmlSerializerNamespaces.cs
- Double.cs
- InstallerTypeAttribute.cs
- RoutedEventHandlerInfo.cs
- Int64Animation.cs
- SQLInt16.cs
- SslStream.cs
- WriteFileContext.cs
- KeyboardEventArgs.cs
- ContentDisposition.cs
- DetailsViewDeletedEventArgs.cs
- BaseAsyncResult.cs
- QilChoice.cs
- MenuCommand.cs
- GridViewSelectEventArgs.cs
- PartialCachingControl.cs
- TimeZone.cs
- MenuEventArgs.cs
- Claim.cs
- EastAsianLunisolarCalendar.cs
- RIPEMD160Managed.cs
- UntrustedRecipientException.cs
- GenericTypeParameterConverter.cs
- GlyphRunDrawing.cs
- SchemaLookupTable.cs
- RuntimeCompatibilityAttribute.cs
- CollaborationHelperFunctions.cs
- _HeaderInfoTable.cs
- EntityPropertyMappingAttribute.cs
- EDesignUtil.cs
- InputBuffer.cs
- DataSourceHelper.cs
- Help.cs
- ReadOnlyPropertyMetadata.cs
- ButtonRenderer.cs
- Interlocked.cs
- SQLDecimal.cs
- TextRangeSerialization.cs
- TextLine.cs
- AuthenticationSection.cs
- HealthMonitoringSectionHelper.cs
- DebugInfo.cs
- InstanceDataCollection.cs
- assemblycache.cs
- ActivityBindForm.cs
- ScriptControl.cs
- precedingquery.cs
- XmlWrappingReader.cs
- DisplayInformation.cs
- elementinformation.cs
- TimelineCollection.cs
- CollectionBuilder.cs
- DiagnosticsConfiguration.cs
- PageCodeDomTreeGenerator.cs
- WebService.cs
- TrackBar.cs
- NameTable.cs
- RuntimeVariableList.cs
- versioninfo.cs
- WebPartManagerInternals.cs
- CSharpCodeProvider.cs
- HelpEvent.cs