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
- SpotLight.cs
- HttpProtocolImporter.cs
- RandomDelaySendsAsyncResult.cs
- PointAnimationUsingKeyFrames.cs
- SqlDataSourceQueryEditorForm.cs
- EpmContentDeSerializer.cs
- SafeNativeMethods.cs
- SerialStream.cs
- NamespaceDecl.cs
- ServiceNameElement.cs
- SupportingTokenProviderSpecification.cs
- Cursor.cs
- CommandDevice.cs
- MustUnderstandSoapException.cs
- StringExpressionSet.cs
- PointConverter.cs
- MethodSignatureGenerator.cs
- ApplicationId.cs
- RenderTargetBitmap.cs
- ListControl.cs
- XmlNode.cs
- PaintValueEventArgs.cs
- Int64AnimationBase.cs
- RealProxy.cs
- COM2ExtendedUITypeEditor.cs
- CodeNamespaceImportCollection.cs
- BuildResult.cs
- GeneralTransform.cs
- SupportedAddressingMode.cs
- ComponentConverter.cs
- TextRunCacheImp.cs
- CodeNamespaceCollection.cs
- TransactionManager.cs
- DesigntimeLicenseContext.cs
- MultiTouchSystemGestureLogic.cs
- DataColumn.cs
- NativeMethods.cs
- IsolatedStorageFile.cs
- SessionParameter.cs
- MouseButton.cs
- WindowsImpersonationContext.cs
- COM2Enum.cs
- ProfilePropertySettings.cs
- TableSectionStyle.cs
- SurrogateEncoder.cs
- _KerberosClient.cs
- ServiceReflector.cs
- IncrementalReadDecoders.cs
- DataGridViewSelectedRowCollection.cs
- CounterSample.cs
- SoapIncludeAttribute.cs
- ConfigurationElementCollection.cs
- TabPanel.cs
- DataTableNewRowEvent.cs
- DesignerUtils.cs
- SafeWaitHandle.cs
- PathData.cs
- FilteredDataSetHelper.cs
- LockedActivityGlyph.cs
- Comparer.cs
- ObjectSecurity.cs
- XPathBinder.cs
- DesignParameter.cs
- TransactionContextManager.cs
- CodeStatement.cs
- FloatSumAggregationOperator.cs
- SBCSCodePageEncoding.cs
- ModelPerspective.cs
- XmlSchemaGroupRef.cs
- UmAlQuraCalendar.cs
- NetStream.cs
- QueryMatcher.cs
- FieldToken.cs
- RsaKeyGen.cs
- Transform.cs
- SQLResource.cs
- DataBindingHandlerAttribute.cs
- _ListenerAsyncResult.cs
- ProfilePropertySettingsCollection.cs
- Point3DAnimation.cs
- ElementMarkupObject.cs
- CDSCollectionETWBCLProvider.cs
- InputScopeNameConverter.cs
- GlobalProxySelection.cs
- PropertyTab.cs
- CompilerErrorCollection.cs
- ComponentEvent.cs
- CompilerError.cs
- StylusShape.cs
- FileLoadException.cs
- FileIOPermission.cs
- CodeDomComponentSerializationService.cs
- ProviderConnectionPointCollection.cs
- ChildTable.cs
- CodeDomComponentSerializationService.cs
- HtmlEmptyTagControlBuilder.cs
- DSASignatureFormatter.cs
- ConfigXmlWhitespace.cs
- SafeFileHandle.cs
- TableProviderWrapper.cs