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
- FrameworkTextComposition.cs
- ProcessHost.cs
- CookielessData.cs
- DispatcherHooks.cs
- GlyphRun.cs
- ImageClickEventArgs.cs
- ConfigurationSection.cs
- HorizontalAlignConverter.cs
- RpcCryptoRequest.cs
- Animatable.cs
- Rijndael.cs
- PropertyGridView.cs
- Dictionary.cs
- QueryPageSettingsEventArgs.cs
- SurrogateSelector.cs
- CommandManager.cs
- FacetEnabledSchemaElement.cs
- AccessDataSource.cs
- XmlExpressionDumper.cs
- SimpleWebHandlerParser.cs
- SrgsElement.cs
- HebrewCalendar.cs
- Point4DValueSerializer.cs
- TypeElement.cs
- SkipStoryboardToFill.cs
- _NestedMultipleAsyncResult.cs
- PropertyChangedEventManager.cs
- RenderDataDrawingContext.cs
- WindowsFormsHostAutomationPeer.cs
- ApplicationInfo.cs
- RenamedEventArgs.cs
- DataContractSerializerOperationFormatter.cs
- IPCCacheManager.cs
- ListViewItemMouseHoverEvent.cs
- RegexRunner.cs
- DesignerActionService.cs
- ReadWriteObjectLock.cs
- SourceChangedEventArgs.cs
- PanelStyle.cs
- InstanceKeyCollisionException.cs
- DBPropSet.cs
- ImageMapEventArgs.cs
- NavigationFailedEventArgs.cs
- XMLDiffLoader.cs
- CollectionChangeEventArgs.cs
- CustomValidator.cs
- XmlAttributeProperties.cs
- DispatcherOperation.cs
- OdbcEnvironmentHandle.cs
- TripleDES.cs
- Object.cs
- ZipPackagePart.cs
- ImportContext.cs
- DataServicePagingProviderWrapper.cs
- SignatureHelper.cs
- DataColumnCollection.cs
- Base64WriteStateInfo.cs
- ForeignKeyFactory.cs
- AnimatedTypeHelpers.cs
- TripleDESCryptoServiceProvider.cs
- JoinCqlBlock.cs
- SmtpSection.cs
- HMACSHA512.cs
- ImagingCache.cs
- DateTimeConstantAttribute.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- CalendarAutoFormatDialog.cs
- MobileSysDescriptionAttribute.cs
- DoubleConverter.cs
- ResourcePool.cs
- TimeStampChecker.cs
- RegexCode.cs
- TextRangeProviderWrapper.cs
- StylusPointCollection.cs
- ArgIterator.cs
- UncommonField.cs
- ToolstripProfessionalRenderer.cs
- TraceSwitch.cs
- ListViewItemSelectionChangedEvent.cs
- UserControlCodeDomTreeGenerator.cs
- CookielessHelper.cs
- FormsIdentity.cs
- SerializationObjectManager.cs
- ClientSettingsSection.cs
- UriScheme.cs
- KeyInfo.cs
- WebPartDesigner.cs
- Message.cs
- EntityViewGenerator.cs
- WebPartExportVerb.cs
- Canvas.cs
- PublisherMembershipCondition.cs
- Timer.cs
- AssemblySettingAttributes.cs
- ToolboxItemCollection.cs
- PageVisual.cs
- EntityViewContainer.cs
- EditorPartCollection.cs
- ProgressBarHighlightConverter.cs
- ChannelManager.cs