Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- OleDbCommand.cs
- CallbackTimeoutsElement.cs
- ChangeTracker.cs
- TreeView.cs
- LocalizedNameDescriptionPair.cs
- AccessKeyManager.cs
- CustomAttribute.cs
- UpDownBase.cs
- GroupItemAutomationPeer.cs
- QilTernary.cs
- ApplicationManager.cs
- FusionWrap.cs
- XmlEventCache.cs
- DocumentCollection.cs
- TextDecorations.cs
- CellRelation.cs
- AttachedPropertyMethodSelector.cs
- UnionExpr.cs
- ItemCheckedEvent.cs
- BufferAllocator.cs
- BufferedGraphics.cs
- TextTreeRootNode.cs
- BaseCodePageEncoding.cs
- HideDisabledControlAdapter.cs
- WebPartAuthorizationEventArgs.cs
- QuestionEventArgs.cs
- WindowsTreeView.cs
- BCLDebug.cs
- ResourceCategoryAttribute.cs
- LinkedResource.cs
- SQLBytes.cs
- EmbeddedMailObjectsCollection.cs
- TcpProcessProtocolHandler.cs
- CodeCatchClause.cs
- SmtpFailedRecipientsException.cs
- OLEDB_Enum.cs
- AttributeSetAction.cs
- COM2PropertyDescriptor.cs
- FileDialogCustomPlacesCollection.cs
- QilFunction.cs
- EventsTab.cs
- ArraySet.cs
- BoundsDrawingContextWalker.cs
- ZoneMembershipCondition.cs
- StrokeDescriptor.cs
- SiteMapDataSource.cs
- OutputCacheModule.cs
- PersonalizationDictionary.cs
- HyperLinkField.cs
- recordstate.cs
- EmulateRecognizeCompletedEventArgs.cs
- SoapCodeExporter.cs
- PartitionResolver.cs
- PinnedBufferMemoryStream.cs
- SyntaxCheck.cs
- WasNotInstalledException.cs
- GridViewUpdatedEventArgs.cs
- HttpListenerException.cs
- XmlElementList.cs
- XmlNodeChangedEventManager.cs
- OdbcConnectionFactory.cs
- Connector.xaml.cs
- QueueSurrogate.cs
- ButtonStandardAdapter.cs
- XmlAttributeAttribute.cs
- DataControlFieldCollection.cs
- ResXFileRef.cs
- xmlfixedPageInfo.cs
- ColorAnimation.cs
- KnownTypesProvider.cs
- ModelVisual3D.cs
- AttachedAnnotationChangedEventArgs.cs
- XPathDescendantIterator.cs
- FixUpCollection.cs
- TypeForwardedFromAttribute.cs
- DesignBindingEditor.cs
- WebPartDisplayMode.cs
- TemplatedWizardStep.cs
- ProfileBuildProvider.cs
- EntityCommandDefinition.cs
- ToolTipAutomationPeer.cs
- UpdateProgress.cs
- OpenFileDialog.cs
- ReadOnlyCollectionBase.cs
- ConfigXmlElement.cs
- SqlConnectionFactory.cs
- MarshalByRefObject.cs
- LinqDataSourceStatusEventArgs.cs
- WebUtil.cs
- SafeLibraryHandle.cs
- MailMessageEventArgs.cs
- WebPartUtil.cs
- UnsafeNativeMethodsMilCoreApi.cs
- MergeFailedEvent.cs
- ActivityCodeDomSerializer.cs
- Selection.cs
- CompositeActivityCodeGenerator.cs
- ContextActivityUtils.cs
- ArgumentValueSerializer.cs
- DeferredTextReference.cs