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
- ContainerSelectorActiveEvent.cs
- ByteViewer.cs
- KnownTypeDataContractResolver.cs
- Stackframe.cs
- ParentQuery.cs
- ContentElement.cs
- ContextStaticAttribute.cs
- BindingNavigator.cs
- BooleanExpr.cs
- IdnElement.cs
- CodeStatementCollection.cs
- BevelBitmapEffect.cs
- ISAPIWorkerRequest.cs
- DbParameterHelper.cs
- SpeechSynthesizer.cs
- DataMemberAttribute.cs
- WebPartChrome.cs
- SamlAuthorizationDecisionClaimResource.cs
- XPathArrayIterator.cs
- ImageCollectionCodeDomSerializer.cs
- TrackingParameters.cs
- ColumnResult.cs
- URLIdentityPermission.cs
- MediaCommands.cs
- PackageRelationshipSelector.cs
- CompilerHelpers.cs
- MembershipUser.cs
- XmlSchemaSimpleContentRestriction.cs
- sqlnorm.cs
- AlternationConverter.cs
- EventLogEntryCollection.cs
- PassportPrincipal.cs
- PermissionListSet.cs
- SoapMessage.cs
- HyperLinkDataBindingHandler.cs
- Tokenizer.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- ParentQuery.cs
- ScrollPattern.cs
- StructuredTypeEmitter.cs
- ContainerControlDesigner.cs
- RequestCachingSection.cs
- InlineUIContainer.cs
- HwndKeyboardInputProvider.cs
- SQLGuid.cs
- ApplySecurityAndSendAsyncResult.cs
- GlyphTypeface.cs
- HttpWebRequest.cs
- Header.cs
- WebPartMinimizeVerb.cs
- BeginSelectCardRequest.cs
- AppDomainShutdownMonitor.cs
- MetadataArtifactLoaderCompositeResource.cs
- HttpVersion.cs
- GeometryModel3D.cs
- WebPartZoneBase.cs
- TcpChannelFactory.cs
- ThrowHelper.cs
- WebConfigManager.cs
- AudioDeviceOut.cs
- parserscommon.cs
- BinaryExpression.cs
- CmsInterop.cs
- CompositeCollectionView.cs
- LinearGradientBrush.cs
- IndexerReference.cs
- Regex.cs
- ExceptionHandler.cs
- BasePattern.cs
- Attribute.cs
- BindingCollection.cs
- DataObjectEventArgs.cs
- RelatedPropertyManager.cs
- FunctionImportMapping.cs
- InfoCardMetadataExchangeClient.cs
- EntityProviderServices.cs
- HtmlTableRow.cs
- NetDataContractSerializer.cs
- SoapSchemaExporter.cs
- LoginCancelEventArgs.cs
- ValueTypeFixupInfo.cs
- AsymmetricSignatureDeformatter.cs
- DesignerSerializationOptionsAttribute.cs
- Task.cs
- DisplayMemberTemplateSelector.cs
- LogSwitch.cs
- InvariantComparer.cs
- OperatingSystemVersionCheck.cs
- PassportPrincipal.cs
- Vector3DCollection.cs
- MultiTrigger.cs
- VirtualDirectoryMapping.cs
- FixedStringLookup.cs
- ProfileInfo.cs
- DataListCommandEventArgs.cs
- DropDownList.cs
- DataGridItem.cs
- ReadContentAsBinaryHelper.cs
- BitmapMetadataBlob.cs
- EntitySqlQueryBuilder.cs