Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- AutomationAttributeInfo.cs
- HttpFileCollectionBase.cs
- GZipDecoder.cs
- AutomationProperties.cs
- RewritingPass.cs
- ArrayTypeMismatchException.cs
- XmlResolver.cs
- SimpleApplicationHost.cs
- Stopwatch.cs
- SectionRecord.cs
- RadioButtonStandardAdapter.cs
- ToolStripLabel.cs
- CrossAppDomainChannel.cs
- InkCanvasFeedbackAdorner.cs
- SqlGenericUtil.cs
- GeneralTransformGroup.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- DataControlFieldCollection.cs
- HttpVersion.cs
- LogWriteRestartAreaAsyncResult.cs
- WindowsGraphicsCacheManager.cs
- XmlWhitespace.cs
- SimpleWebHandlerParser.cs
- Baml2006ReaderFrame.cs
- SafeNativeMethodsOther.cs
- LocalFileSettingsProvider.cs
- ChangeTracker.cs
- TreeNodeMouseHoverEvent.cs
- METAHEADER.cs
- PeerNameRecordCollection.cs
- UnmanagedMemoryStreamWrapper.cs
- LineBreak.cs
- AutomationPattern.cs
- ExtendedTransformFactory.cs
- WmlLabelAdapter.cs
- TextBox.cs
- Send.cs
- Imaging.cs
- RuleRef.cs
- ConfigurationPermission.cs
- SizeFConverter.cs
- StdRegProviderWrapper.cs
- BamlRecordReader.cs
- ProtocolsSection.cs
- XmlConvert.cs
- ValueOfAction.cs
- LayoutExceptionEventArgs.cs
- GlobalProxySelection.cs
- XsltSettings.cs
- AspNetSynchronizationContext.cs
- GlyphCache.cs
- WebPartMinimizeVerb.cs
- Dictionary.cs
- FileClassifier.cs
- Parallel.cs
- BatchParser.cs
- SystemInformation.cs
- TreeNodeClickEventArgs.cs
- DesignerActionUI.cs
- CompilerScope.cs
- MetabaseSettingsIis7.cs
- documentation.cs
- BitFlagsGenerator.cs
- BulletedListEventArgs.cs
- GetPageNumberCompletedEventArgs.cs
- HttpListenerRequestUriBuilder.cs
- HashMembershipCondition.cs
- OperationCanceledException.cs
- ConfigXmlComment.cs
- DataControlFieldCell.cs
- Pair.cs
- ContractUtils.cs
- ViewStateModeByIdAttribute.cs
- AnimationTimeline.cs
- TreeViewImageKeyConverter.cs
- TailCallAnalyzer.cs
- EdmScalarPropertyAttribute.cs
- DriveNotFoundException.cs
- RecognizedAudio.cs
- HatchBrush.cs
- WindowsListViewScroll.cs
- Size.cs
- WebServicesDescriptionAttribute.cs
- CredentialCache.cs
- DesignerImageAdapter.cs
- GuidTagList.cs
- PopOutPanel.cs
- EmptyQuery.cs
- DBParameter.cs
- DocumentSequence.cs
- SoapIncludeAttribute.cs
- AspNetSynchronizationContext.cs
- Win32Native.cs
- BlockUIContainer.cs
- FamilyMap.cs
- SByte.cs
- FlowDocumentPage.cs
- CachedFontFamily.cs
- XmlDocument.cs
- HttpChannelBindingToken.cs