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
- HttpRequest.cs
- ObjectDataSourceFilteringEventArgs.cs
- ExtenderProvidedPropertyAttribute.cs
- AsymmetricCryptoHandle.cs
- CompoundFileDeflateTransform.cs
- ScriptResourceHandler.cs
- PerformanceCounterCategory.cs
- InlineCollection.cs
- CompositeDataBoundControl.cs
- BulletDecorator.cs
- Paragraph.cs
- ManifestSignatureInformation.cs
- ConnectionStringsExpressionBuilder.cs
- ProviderIncompatibleException.cs
- MaterialGroup.cs
- Currency.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- FrameworkReadOnlyPropertyMetadata.cs
- VisualBrush.cs
- SegmentInfo.cs
- DictionaryGlobals.cs
- DataSourceCache.cs
- ConfigXmlSignificantWhitespace.cs
- EncoderReplacementFallback.cs
- OrderedDictionary.cs
- FamilyTypefaceCollection.cs
- PathTooLongException.cs
- DESCryptoServiceProvider.cs
- ProfileProvider.cs
- TemplateBamlRecordReader.cs
- XmlSchemaInclude.cs
- Hash.cs
- MSHTMLHost.cs
- HtmlInputPassword.cs
- ScriptingJsonSerializationSection.cs
- safesecurityhelperavalon.cs
- CapabilitiesSection.cs
- ProcessInfo.cs
- DebuggerAttributes.cs
- Run.cs
- PerformanceCounterPermissionAttribute.cs
- BackEase.cs
- BaseCodeDomTreeGenerator.cs
- JsonSerializer.cs
- RefreshEventArgs.cs
- WebConfigurationHost.cs
- IndicShape.cs
- UITypeEditors.cs
- IndexedString.cs
- StyleModeStack.cs
- IssuanceLicense.cs
- XmlWrappingReader.cs
- CompositeActivityTypeDescriptor.cs
- PasswordTextNavigator.cs
- MachineKeySection.cs
- CacheAxisQuery.cs
- mda.cs
- HitTestParameters3D.cs
- HtmlForm.cs
- IWorkflowDebuggerService.cs
- AdapterUtil.cs
- DataGridViewCellStyle.cs
- CommonGetThemePartSize.cs
- ServerValidateEventArgs.cs
- UnknownWrapper.cs
- Vector3dCollection.cs
- _FixedSizeReader.cs
- PeerResolverMode.cs
- ILGenerator.cs
- StretchValidation.cs
- basenumberconverter.cs
- DiscoveryDocumentLinksPattern.cs
- HeaderPanel.cs
- DependencyPropertyConverter.cs
- LayoutUtils.cs
- RegistryKey.cs
- EventBuilder.cs
- DateTimeStorage.cs
- WCFServiceClientProxyGenerator.cs
- Accessible.cs
- FixedTextPointer.cs
- IntermediatePolicyValidator.cs
- OleDbConnectionInternal.cs
- SelectQueryOperator.cs
- AuthenticatingEventArgs.cs
- Timeline.cs
- StringKeyFrameCollection.cs
- DesignTimeTemplateParser.cs
- JapaneseLunisolarCalendar.cs
- EventMappingSettingsCollection.cs
- WebServicesDescriptionAttribute.cs
- XmlUtf8RawTextWriter.cs
- DataGridViewRowPostPaintEventArgs.cs
- FontUnit.cs
- NetworkStream.cs
- DesignerSerializationVisibilityAttribute.cs
- ProcessHostMapPath.cs
- SqlAliasesReferenced.cs
- StyleModeStack.cs
- CallbackHandler.cs