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
- ScrollProviderWrapper.cs
- TextEvent.cs
- ListViewCancelEventArgs.cs
- IFlowDocumentViewer.cs
- DrawListViewSubItemEventArgs.cs
- GeometryModel3D.cs
- Pen.cs
- StandardOleMarshalObject.cs
- ColumnPropertiesGroup.cs
- QueuePropertyVariants.cs
- Metafile.cs
- StringBuilder.cs
- EventHandlersStore.cs
- OdbcFactory.cs
- GeometryHitTestResult.cs
- XPathNodeIterator.cs
- SiteMapSection.cs
- RootProfilePropertySettingsCollection.cs
- PackUriHelper.cs
- WmiEventSink.cs
- XmlLinkedNode.cs
- TimeSpanOrInfiniteValidator.cs
- StdRegProviderWrapper.cs
- HyperLinkColumn.cs
- CheckBoxList.cs
- HttpPostLocalhostServerProtocol.cs
- PublisherIdentityPermission.cs
- BinaryParser.cs
- WorkflowApplicationAbortedException.cs
- UnconditionalPolicy.cs
- DoubleLinkListEnumerator.cs
- TraceUtility.cs
- DrawingContextWalker.cs
- UnsafeNativeMethods.cs
- PersistChildrenAttribute.cs
- DiscreteKeyFrames.cs
- Operators.cs
- OleDbError.cs
- DataKey.cs
- BevelBitmapEffect.cs
- StateRuntime.cs
- WindowsPrincipal.cs
- oledbmetadatacollectionnames.cs
- SystemIPAddressInformation.cs
- printdlgexmarshaler.cs
- SimpleBitVector32.cs
- RepeaterItemCollection.cs
- ViewCellRelation.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- PolicyManager.cs
- AppDomainAttributes.cs
- HopperCache.cs
- ProtocolsConfigurationHandler.cs
- Sequence.cs
- DataGridViewColumnConverter.cs
- ReadOnlyPermissionSet.cs
- ContextProperty.cs
- Control.cs
- OpenTypeLayout.cs
- SchemaDeclBase.cs
- TransformationRules.cs
- CaseKeyBox.xaml.cs
- CustomAttribute.cs
- DeploymentExceptionMapper.cs
- EventLogTraceListener.cs
- glyphs.cs
- ReflectTypeDescriptionProvider.cs
- VirtualDirectoryMappingCollection.cs
- DictionaryKeyPropertyAttribute.cs
- FixedHighlight.cs
- PackageRelationshipCollection.cs
- CompiledELinqQueryState.cs
- BulletedList.cs
- IPEndPoint.cs
- XmlMemberMapping.cs
- UserNameSecurityTokenProvider.cs
- XmlMapping.cs
- StringCollection.cs
- BindingOperations.cs
- DataControlFieldCollection.cs
- ReferenceService.cs
- BooleanConverter.cs
- ObjectStorage.cs
- DbConnectionPoolGroup.cs
- DesigntimeLicenseContextSerializer.cs
- MetafileEditor.cs
- SqlBulkCopyColumnMapping.cs
- _SpnDictionary.cs
- SafeUserTokenHandle.cs
- FixedHighlight.cs
- WebContext.cs
- LinkArea.cs
- Visual3D.cs
- LeftCellWrapper.cs
- InvalidOperationException.cs
- mda.cs
- XhtmlBasicValidationSummaryAdapter.cs
- HandoffBehavior.cs
- NavigationWindow.cs
- AutoGeneratedFieldProperties.cs