5 instantiations of Double
PresentationCore (4)
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimation.cs (4)
235Double from = new Double(); 236Double to = new Double(); 237Double accumulated = new Double(); 238Double foundation = new Double();
PresentationFramework (1)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3768bamlType.DefaultConstructor = delegate() { return new System.Double(); };
1882 references to Double
mscorlib (94)
microsoft\win32\oavariantlib.cs (1)
51typeof(Double),
system\convert.cs (3)
130(RuntimeType)typeof(Double), 1603return Double.Parse(value, CultureInfo.CurrentCulture); 1609return Double.Parse(value, NumberStyles.Float | NumberStyles.AllowThousands, provider);
System\Diagnostics\Eventing\TraceLogging\SimpleTypeInfos.cs (4)
266: TraceLoggingTypeInfo<Double> 276public override void WriteData(TraceLoggingDataCollector collector, ref Double value) 598: TraceLoggingTypeInfo<Double[]> 608public override void WriteData(TraceLoggingDataCollector collector, ref Double[] value)
System\Diagnostics\Eventing\TraceLogging\Statics.cs (2)
641else if (elementType == typeof(Double)) 753else if (dataType == typeof(Double))
system\double.cs (19)
33, IComparable<Double>, IEquatable<Double> 118if (value is Double) { 133public int CompareTo(Double value) { 148if (!(obj is Double)) { 151double temp = ((Double)obj).m_value; 160public static bool operator ==(Double left, Double right) { 165public static bool operator !=(Double left, Double right) { 170public static bool operator <(Double left, Double right) { 175public static bool operator >(Double left, Double right) { 180public static bool operator <=(Double left, Double right) { 185public static bool operator >=(Double left, Double right) { 189public bool Equals(Double obj)
system\internal.cs (5)
101NullableHelper<Double>(); 115new List<Double>(); 132new KeyValuePair<UInt16, Double>(UInt16.MinValue, Double.MinValue); 139SZArrayHelper<Double>(null);
system\io\unmanagedmemoryaccessor.cs (7)
354public Double ReadDouble(Int64 position) { 355int sizeOfType = sizeof(Double); 358Double result; 370result = *((Double*)(pointer)); 852public void Write(Int64 position, Double value) { 853int sizeOfType = sizeof(Double); 866*((Double*)pointer) = value;
system\math.cs (14)
88Double power10 = roundPower10Double[digits]; 207if (Double.IsNaN(x)) { 210if (Double.IsNaN(y)) { 215if (Double.IsNaN(regularMod)) { 216return Double.NaN; 219if (Double.IsNegative(x)) { 220return Double.NegativeZero; 410if (Double.IsNaN(val1)) 492if (Double.IsNaN(val1)) 507if (Double.IsNaN(a)) { 510if (Double.IsNaN(newBase)) { 515return Double.NaN; 516if (a != 1 && (newBase == 0 || Double.IsPositiveInfinity(newBase))) 517return Double.NaN;
system\number.cs (9)
329internal unsafe static extern Boolean NumberBufferToDouble(byte* number, ref Double value); 664internal unsafe static Double ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt) { 671Double d = 0; 679return Double.PositiveInfinity; 682return Double.NegativeInfinity; 685return Double.NaN; 948Double d = 0; 1065internal unsafe static Boolean TryParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt, out Double result) { 1133Double d = 0;
system\resources\resourcereader.cs (1)
635else if (type == typeof(Double))
system\resources\resourcewriter.cs (2)
555else if (type == typeof(Double)) 655writer.Write((Double) value);
system\Runtime\InteropServices\Variant.cs (2)
88[FieldOffset(0)] internal Double _r8; 556public Double AsR8 {
system\runtime\interopservices\windowsruntime\clripropertyvalueimpl.cs (6)
44new Tuple<Type, PropertyType>(typeof(Double), PropertyType.Double) 126public Double GetDouble() 128return CoerceScalarValue<Double>(PropertyType.Double); 272public Double[] GetDoubleArray() 274return CoerceArrayValue<Double>(PropertyType.DoubleArray); 474else if (typeof(T) == typeof(Double)) {
system\runtime\interopservices\windowsruntime\ipropertyvalue.cs (2)
58Double GetDouble(); 112Double[] GetDoubleArray();
system\runtime\remoting\message.cs (4)
665if (pt == typeof(Double)) 668ret = Double.PositiveInfinity; 670ret = Double.NegativeInfinity; 672ret = Double.Parse(strValue, CultureInfo.InvariantCulture);
system\runtime\remoting\soapinteroptypes.cs (2)
378Convert.ToInt64(Double.Parse(second+"."+fraction, CultureInfo.InvariantCulture)*(Double)TimeSpan.TicksPerSecond)
system\runtime\serialization\formatter.cs (1)
157} else if (varType==typeof(Double)) {
system\runtime\serialization\formatters\binary\binaryconverter.cs (3)
295array = new Double[length]; 496internal static Type typeofDouble = typeof(Double); 521internal static Type typeofDoubleArray = typeof(Double[]);
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (1)
108internal void WriteDouble(Double value)
system\runtime\serialization\formatters\binary\binaryparser.cs (1)
325internal Double ReadDouble()
system\runtime\serialization\formatters\binary\binaryutilclasses.cs (3)
839Double[] doubleA = null; 867doubleA = (Double[])array; 910doubleA[index] = Double.Parse(value, CultureInfo.InvariantCulture);
system\timespan.cs (1)
229if (Double.IsNaN(value))
system\variant.cs (1)
104typeof(Double),
PresentationBuildTasks (5)
Base\System\Windows\Markup\TypeConverterHelper.cs (1)
205else if (typeof(Double).IsAssignableFrom(type))
Core\CSharp\MS\internal\Media\XamlSerializationHelper.cs (3)
307internal static void WriteDouble( BinaryWriter writer, Double value ) 445internal static bool CanConvertToInteger( Double doubleValue , ref int intValue ) 459else if ( ( scaledValue - scaledInteger ) > Double.Epsilon )
Framework\System\Windows\Markup\KnownTypes.cs (1)
5496case KnownElements.Double: t = typeof(Double); break;
PresentationCore (499)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (87)
18internal static Byte InterpolateByte(Byte from, Byte to, Double progress) 20return (Byte)((Int32)from + (Int32)((((Double)(to - from)) + (Double)0.5) * progress)); 23internal static Color InterpolateColor(Color from, Color to, Double progress) 28internal static Decimal InterpolateDecimal(Decimal from, Decimal to, Double progress) 33internal static Double InterpolateDouble(Double from, Double to, Double progress) 38internal static Int16 InterpolateInt16(Int16 from, Int16 to, Double progress) 50Double addend = (Double)(to - from); 58internal static Int32 InterpolateInt32(Int32 from, Int32 to, Double progress) 70Double addend = (Double)(to - from); 78internal static Int64 InterpolateInt64(Int64 from, Int64 to, Double progress) 90Double addend = (Double)(to - from); 98internal static Point InterpolatePoint(Point from, Point to, Double progress) 103internal static Point3D InterpolatePoint3D(Point3D from, Point3D to, Double progress) 108internal static Quaternion InterpolateQuaternion(Quaternion from, Quaternion to, Double progress, bool useShortestPath) 113internal static Rect InterpolateRect(Rect from, Rect to, Double progress) 128internal static Rotation3D InterpolateRotation3D(Rotation3D from, Rotation3D to, Double progress) 133internal static Single InterpolateSingle(Single from, Single to, Double progress) 138internal static Size InterpolateSize(Size from, Size to, Double progress) 143internal static System.Windows.Vector InterpolateVector(System.Windows.Vector from, System.Windows.Vector to, Double progress) 148internal static Vector3D InterpolateVector3D(Vector3D from, Vector3D to, Double progress) 172internal static Double AddDouble(Double value1, Double value2) 274internal static Double SubtractDouble(Double value1, Double value2) 354internal static Double GetSegmentLengthBoolean(Boolean from, Boolean to) 366internal static Double GetSegmentLengthByte(Byte from, Byte to) 371internal static Double GetSegmentLengthChar(Char from, Char to) 383internal static Double GetSegmentLengthColor(Color from, Color to) 391internal static Double GetSegmentLengthDecimal(Decimal from, Decimal to) 396return (Double)Math.Abs(to - from); 399internal static Double GetSegmentLengthDouble(Double from, Double to) 404internal static Double GetSegmentLengthInt16(Int16 from, Int16 to) 409internal static Double GetSegmentLengthInt32(Int32 from, Int32 to) 414internal static Double GetSegmentLengthInt64(Int64 from, Int64 to) 419internal static Double GetSegmentLengthMatrix(Matrix from, Matrix to) 431internal static Double GetSegmentLengthObject(Object from, Object to) 436internal static Double GetSegmentLengthPoint(Point from, Point to) 441internal static Double GetSegmentLengthPoint3D(Point3D from, Point3D to) 446internal static Double GetSegmentLengthQuaternion(Quaternion from, Quaternion to) 453internal static Double GetSegmentLengthRect(Rect from, Rect to) 459Double a = GetSegmentLengthPoint(from.Location, to.Location); 460Double b = GetSegmentLengthSize(from.Size, to.Size); 466internal static Double GetSegmentLengthRotation3D(Rotation3D from, Rotation3D to) 471internal static Double GetSegmentLengthSingle(Single from, Single to) 476internal static Double GetSegmentLengthSize(Size from, Size to) 481internal static Double GetSegmentLengthString(String from, String to) 493internal static Double GetSegmentLengthVector(System.Windows.Vector from, System.Windows.Vector to) 498internal static Double GetSegmentLengthVector3D(Vector3D from, Vector3D to) 507internal static Byte ScaleByte(Byte value, Double factor) 509return (Byte)((Double)value * factor); 512internal static Color ScaleColor(Color value, Double factor) 517internal static Decimal ScaleDecimal(Decimal value, Double factor) 522internal static Double ScaleDouble(Double value, Double factor) 527internal static Int16 ScaleInt16(Int16 value, Double factor) 529return (Int16)((Double)value * factor); 532internal static Int32 ScaleInt32(Int32 value, Double factor) 534return (Int32)((Double)value * factor); 537internal static Int64 ScaleInt64(Int64 value, Double factor) 539return (Int64)((Double)value * factor); 542internal static Point ScalePoint(Point value, Double factor) 549internal static Point3D ScalePoint3D(Point3D value, Double factor) 557internal static Quaternion ScaleQuaternion(Quaternion value, Double factor) 562internal static Rect ScaleRect(Rect value, Double factor) 576internal static Rotation3D ScaleRotation3D(Rotation3D value, Double factor) 581internal static Single ScaleSingle(Single value, Double factor) 583return (Single)((Double)value * factor); 586internal static Size ScaleSize(Size value, Double factor) 591internal static System.Windows.Vector ScaleVector(System.Windows.Vector value, Double factor) 596internal static Vector3D ScaleVector3D(Vector3D value, Double factor) 630internal static bool IsValidAnimationValueDouble(Double value) 772internal static Double GetZeroValueDouble(Double baseValue) 841private static Boolean IsInvalidDouble(Double value) 843return Double.IsInfinity(value)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (2)
914if ( Double.IsNaN(dVal) || dVal < DrawingAttributes.MinHeight || dVal > DrawingAttributes.MaxHeight) 921if (Double.IsNaN(dVal) || dVal < DrawingAttributes.MinWidth || dVal > DrawingAttributes.MaxWidth)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (2)
387double height = DoubleUtil.IsZero(stylusHeight) ? (Double)DrawingAttributes.GetDefaultDrawingAttributeValue(KnownIds.StylusHeight) : stylusHeight; 388double width = DoubleUtil.IsZero(stylusWidth) ? (Double)DrawingAttributes.GetDefaultDrawingAttributeValue(KnownIds.StylusWidth) : stylusWidth;
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\SerializationHelper.cs (2)
285else if (typeof(Double) == type) 289else if (typeof(Double[]) == type)
Core\CSharp\MS\Internal\Ink\StrokeNode.cs (2)
843return new Point(Double.NaN, Double.NaN);
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (2)
1137internal static readonly Point ArcToMarker = new Point(Double.MinValue, Double.MinValue);
Core\CSharp\MS\Internal\Ink\StylusShape.cs (6)
51if (Double.IsNaN(width) || Double.IsInfinity(width) || width < DrawingAttributes.MinWidth || width > DrawingAttributes.MaxWidth) 56if (Double.IsNaN(height) || Double.IsInfinity(height) || height < DrawingAttributes.MinHeight || height > DrawingAttributes.MaxHeight) 61if (Double.IsNaN(rotation) || Double.IsInfinity(rotation))
Core\CSharp\MS\Internal\Media\ParserStreamGeometrycontext.cs (1)
576private static Double DeserializeDouble(BinaryReader br, bool isScaledInt)
Core\CSharp\MS\Internal\Media\XamlSerializationHelper.cs (3)
307internal static void WriteDouble( BinaryWriter writer, Double value ) 445internal static bool CanConvertToInteger( Double doubleValue , ref int intValue ) 459else if ( ( scaledValue - scaledInteger ) > Double.Epsilon )
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (2)
1043double closestDistance = Double.MaxValue; 1113if (closestDistance != Double.MaxValue)
Core\CSharp\MS\Internal\Media3D\LineUtil.cs (2)
338if (tau < Double.MaxValue && tau > -Double.MaxValue)
Core\CSharp\MS\Internal\TextFormatting\TextStore.cs (1)
2375if (Double.IsPositiveInfinity(metrics.Width))
Core\CSharp\System\Windows\Ink\Stroke.cs (12)
1145if (Double.IsNaN(matrix.M11) || 1146Double.IsNaN(matrix.M12) || 1147Double.IsNaN(matrix.M21) || 1148Double.IsNaN(matrix.M22) || 1149Double.IsNaN(matrix.OffsetX) || 1150Double.IsNaN(matrix.OffsetY)) 1160if (Double.IsInfinity(matrix.M11) || 1161Double.IsInfinity(matrix.M12) || 1162Double.IsInfinity(matrix.M21) || 1163Double.IsInfinity(matrix.M22) || 1164Double.IsInfinity(matrix.OffsetX) || 1165Double.IsInfinity(matrix.OffsetY))
Core\CSharp\System\Windows\Ink\Stroke2.cs (1)
224if (Double.IsNaN(diameter) || diameter < DrawingAttributes.MinWidth || diameter > DrawingAttributes.MaxWidth)
Core\CSharp\System\Windows\Ink\StrokeCollection2.cs (1)
79if (Double.IsNaN(diameter) || diameter < DrawingAttributes.MinWidth || diameter > DrawingAttributes.MaxWidth)
Core\CSharp\System\Windows\Input\InertiaExpansionBehavior.cs (2)
55if (Double.IsInfinity(value) || Double.IsNaN(value))
Core\CSharp\System\Windows\Input\InertiaRotationBehavior.cs (4)
55if (Double.IsInfinity(value) || Double.IsNaN(value)) 75if (Double.IsInfinity(value) || Double.IsNaN(value))
Core\CSharp\System\Windows\Input\InertiaTranslationBehavior.cs (4)
55if (Double.IsInfinity(value) || Double.IsNaN(value)) 75if (Double.IsInfinity(value) || Double.IsNaN(value))
Core\CSharp\System\Windows\Media\Animation\AnimationStorage.cs (1)
1125if (type == typeof(Double))
Core\CSharp\System\Windows\Media\Animation\Clock.cs (7)
1987Double currentProgress; 1991Double repeatCount = repeatBehavior.Count; 2000Double wholePart = (Double)((Int32)repeatCount); 4136internal Double InteractiveSpeedRatio 4157internal Double? PendingSpeedRatio 4496private Double _appliedSpeedRatio;
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (4)
394Double currentSegmentProgress = 0.0; 850List<Double> segmentLengths = new List<Double>(); 858Double totalLength = 0.0;
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (6)
394Double currentSegmentProgress = 0.0; 450Double currentRepeat = (Double)(animationClock.CurrentIteration - 1); 942List<Double> segmentLengths = new List<Double>(); 950Double totalLength = 0.0;
Core\CSharp\System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (4)
394Double currentSegmentProgress = 0.0; 850List<Double> segmentLengths = new List<Double>(); 858Double totalLength = 0.0;
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (6)
394Double currentSegmentProgress = 0.0; 450Double currentRepeat = (Double)(animationClock.CurrentIteration - 1); 942List<Double> segmentLengths = new List<Double>(); 950Double totalLength = 0.0;
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (6)
394Double currentSegmentProgress = 0.0; 450Double currentRepeat = (Double)(animationClock.CurrentIteration - 1); 942List<Double> segmentLengths = new List<Double>(); 950Double totalLength = 0.0;
Core\CSharp\System\Windows\Media\Animation\Generated\DiscreteKeyFrames.cs (4)
432public DiscreteDoubleKeyFrame(Double value) 440public DiscreteDoubleKeyFrame(Double value, KeyTime keyTime) 468protected override Double InterpolateValueCore(Double baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimation.cs (32)
45private Double[] _keyValues; 60Type typeofProp = typeof(Double?); 69new PropertyMetadata((Double?)null, propCallback), 76new PropertyMetadata((Double?)null, propCallback), 83new PropertyMetadata((Double?)null, propCallback), 107public DoubleAnimation(Double toValue, Duration duration) 119public DoubleAnimation(Double toValue, Duration duration, FillBehavior fillBehavior) 132public DoubleAnimation(Double fromValue, Double toValue, Duration duration) 145public DoubleAnimation(Double fromValue, Double toValue, Duration duration, FillBehavior fillBehavior) 218protected override Double GetCurrentValueCore(Double defaultOriginValue, Double defaultDestinationValue, AnimationClock animationClock) 235Double from = new Double(); 236Double to = new Double(); 237Double accumulated = new Double(); 238Double foundation = new Double(); 352Double accumulator = AnimatedTypeHelpers.SubtractDouble(to, from); 377_keyValues = new Double[2]; 384_keyValues = new Double[2]; 391_keyValues = new Double[1]; 398_keyValues = new Double[1]; 404_keyValues = new Double[1]; 425Double? typedValue = (Double?)value; 445public Double? From 449return (Double?)GetValue(FromProperty); 465public Double? To 469return (Double?)GetValue(ToProperty); 485public Double? By 489return (Double?)GetValue(ByProperty);
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimationBase.cs (9)
103return GetCurrentValue((Double)defaultOriginValue, (Double)defaultDestinationValue, animationClock); 115return typeof(Double); 152public Double GetCurrentValue(Double defaultOriginValue, Double defaultDestinationValue, AnimationClock animationClock) 215protected abstract Double GetCurrentValueCore(Double defaultOriginValue, Double defaultDestinationValue, AnimationClock animationClock);
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimationClockResource.cs (4)
47Double baseValue, 59public Double BaseValue 70public Double CurrentValue 144private Double _baseValue;
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (14)
331protected sealed override Double GetCurrentValueCore( 332Double defaultOriginValue, 333Double defaultDestinationValue, 359Double currentIterationValue; 394Double currentSegmentProgress = 0.0; 395Double fromValue; 450Double currentRepeat = (Double)(animationClock.CurrentIteration - 1); 643private Double GetResolvedKeyFrameValue(Int32 resolvedKeyFrameIndex) 942List<Double> segmentLengths = new List<Double>(); 950Double totalLength = 0.0; 954Double prevKeyValue = _keyFrames[index - 1].Value; 958Double currentKeyValue = _keyFrames[index].Value;
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleIndependentAnimationStorage.cs (2)
61Double tempValue = (Double)dobj.GetValue(_dependencyProperty);
Core\CSharp\System\Windows\Media\Animation\Generated\EasingKeyFrames.cs (5)
426public EasingDoubleKeyFrame(Double value) 435public EasingDoubleKeyFrame(Double value, KeyTime keyTime) 445public EasingDoubleKeyFrame(Double value, KeyTime keyTime, IEasingFunction easingFunction) 474protected override Double InterpolateValueCore(Double baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (6)
394Double currentSegmentProgress = 0.0; 450Double currentRepeat = (Double)(animationClock.CurrentIteration - 1); 942List<Double> segmentLengths = new List<Double>(); 950Double totalLength = 0.0;
Core\CSharp\System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (6)
394Double currentSegmentProgress = 0.0; 450Double currentRepeat = (Double)(animationClock.CurrentIteration - 1); 942List<Double> segmentLengths = new List<Double>(); 950Double totalLength = 0.0;
Core\CSharp\System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (6)
394Double currentSegmentProgress = 0.0; 450Double currentRepeat = (Double)(animationClock.CurrentIteration - 1); 942List<Double> segmentLengths = new List<Double>(); 950Double totalLength = 0.0;
Core\CSharp\System\Windows\Media\Animation\Generated\KeyFrames.cs (10)
768protected DoubleKeyFrame(Double value) 777protected DoubleKeyFrame(Double value, KeyTime keyTime) 820typeof(Double), 835Value = (Double)value; 842public Double Value 846return (Double)GetValue(ValueProperty); 863public Double InterpolateValue( 864Double baseValue, 884protected abstract Double InterpolateValueCore( 885Double baseValue,
Core\CSharp\System\Windows\Media\Animation\Generated\LinearKeyFrames.cs (4)
282public LinearDoubleKeyFrame(Double value) 290public LinearDoubleKeyFrame(Double value, KeyTime keyTime) 316protected override Double InterpolateValueCore(Double baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (4)
394Double currentSegmentProgress = 0.0; 850List<Double> segmentLengths = new List<Double>(); 858Double totalLength = 0.0;
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (4)
394Double currentSegmentProgress = 0.0; 850List<Double> segmentLengths = new List<Double>(); 858Double totalLength = 0.0;
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (6)
394Double currentSegmentProgress = 0.0; 450Double currentRepeat = (Double)(animationClock.CurrentIteration - 1); 942List<Double> segmentLengths = new List<Double>(); 950Double totalLength = 0.0;
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (6)
394Double currentSegmentProgress = 0.0; 450Double currentRepeat = (Double)(animationClock.CurrentIteration - 1); 942List<Double> segmentLengths = new List<Double>(); 950Double totalLength = 0.0;
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (6)
394Double currentSegmentProgress = 0.0; 450Double currentRepeat = (Double)(animationClock.CurrentIteration - 1); 942List<Double> segmentLengths = new List<Double>(); 950Double totalLength = 0.0;
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (6)
394Double currentSegmentProgress = 0.0; 450Double currentRepeat = (Double)(animationClock.CurrentIteration - 1); 942List<Double> segmentLengths = new List<Double>(); 950Double totalLength = 0.0;
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (6)
394Double currentSegmentProgress = 0.0; 450Double currentRepeat = (Double)(animationClock.CurrentIteration - 1); 942List<Double> segmentLengths = new List<Double>(); 950Double totalLength = 0.0;
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (6)
394Double currentSegmentProgress = 0.0; 450Double currentRepeat = (Double)(animationClock.CurrentIteration - 1); 942List<Double> segmentLengths = new List<Double>(); 950Double totalLength = 0.0;
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (6)
394Double currentSegmentProgress = 0.0; 450Double currentRepeat = (Double)(animationClock.CurrentIteration - 1); 942List<Double> segmentLengths = new List<Double>(); 950Double totalLength = 0.0;
Core\CSharp\System\Windows\Media\Animation\Generated\SplineKeyFrames.cs (5)
450public SplineDoubleKeyFrame(Double value) 459public SplineDoubleKeyFrame(Double value, KeyTime keyTime) 469public SplineDoubleKeyFrame(Double value, KeyTime keyTime, KeySpline keySpline) 503protected override Double InterpolateValueCore(Double baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (4)
394Double currentSegmentProgress = 0.0; 850List<Double> segmentLengths = new List<Double>(); 858Double totalLength = 0.0;
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (6)
394Double currentSegmentProgress = 0.0; 450Double currentRepeat = (Double)(animationClock.CurrentIteration - 1); 942List<Double> segmentLengths = new List<Double>(); 950Double totalLength = 0.0;
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (6)
394Double currentSegmentProgress = 0.0; 450Double currentRepeat = (Double)(animationClock.CurrentIteration - 1); 942List<Double> segmentLengths = new List<Double>(); 950Double totalLength = 0.0;
Core\CSharp\System\Windows\Media\Animation\KeyTimeConverter.cs (1)
198typeof(Double)).ConvertTo(
Core\CSharp\System\Windows\Media\Animation\RepeatBehavior.cs (1)
51if ( Double.IsInfinity(count)
Core\CSharp\System\Windows\Media\ArcSegment.cs (1)
94Double rotation = RotationAngle;
Core\CSharp\System\Windows\Media\BitmapCacheBrush.cs (2)
282element.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
Core\CSharp\System\Windows\Media\BoundsDrawingContextWalker.cs (12)
169Double radiusX, 170Double radiusY) 219Double radiusX, 220Double radiusY) 396Double opacity) 461Double coordinate) 482Double leadingCoordinate, 483Double offsetToDrivenCoordinate) 607bounds.X = Double.NegativeInfinity; 608bounds.Y = Double.NegativeInfinity; 609bounds.Width = Double.PositiveInfinity; 610bounds.Height = Double.PositiveInfinity;
Core\CSharp\System\Windows\Media\CompositionTarget.cs (4)
609Double.MinValue / 2.0, 610Double.MinValue / 2.0, 611Double.MaxValue, 612Double.MaxValue);
Core\CSharp\System\Windows\Media\DashStyle.cs (1)
60public DashStyle(IEnumerable<double> dashes, Double offset)
Core\CSharp\System\Windows\Media\DrawingDrawingContext.cs (13)
271Double radiusX, 272Double radiusY) 313Double radiusX, 315Double radiusY, 407Double radiusX, 408Double radiusY) 451Double radiusX, 453Double radiusY, 825Double opacity 847Double opacity, 951Double coordinate) 997Double leadingCoordinate, 998Double offsetToDrivenCoordinate)
Core\CSharp\System\Windows\Media\EllipseGeometry.cs (2)
102Double currentRadiusX = RadiusX; 103Double currentRadiusY = RadiusY;
Core\CSharp\System\Windows\Media\FormattedText.cs (1)
1796double lineStartOfLongestLine = Double.MaxValue;
Core\CSharp\System\Windows\Media\Generated\DashStyle.cs (3)
208data.DashesSize = (uint)(sizeof(Double) * DashesCount); 220Double resource = vDashes.Internal_GetItem(i); 223sizeof(Double)
Core\CSharp\System\Windows\Media\Generated\DrawingContext.cs (13)
136Double radiusX, 137Double radiusY); 169Double radiusX, 171Double radiusY, 202Double radiusX, 203Double radiusY); 237Double radiusX, 239Double radiusY, 368Double opacity); 380Double opacity, 407Double coordinate); 420Double leadingCoordinate, 421Double offsetToDrivenCoordinate);
Core\CSharp\System\Windows\Media\Generated\DrawingContextDrawingContextWalker.cs (13)
166Double radiusX, 167Double radiusY) 208Double radiusX, 210Double radiusY, 252Double radiusX, 253Double radiusY) 296Double radiusX, 298Double radiusY, 490Double opacity) 507Double opacity, 549Double coordinate) 567Double leadingCoordinate, 568Double offsetToDrivenCoordinate)
Core\CSharp\System\Windows\Media\Generated\DrawingContextWalker.cs (13)
149Double radiusX, 150Double radiusY) 185Double radiusX, 187Double radiusY, 221Double radiusX, 222Double radiusY) 259Double radiusX, 261Double radiusY, 423Double opacity) 438Double opacity, 474Double coordinate) 490Double leadingCoordinate, 491Double offsetToDrivenCoordinate)
Core\CSharp\System\Windows\Media\Generated\GuidelineSet.cs (6)
228data.GuidelinesXSize = (uint)(sizeof(Double) * GuidelinesXCount); 229data.GuidelinesYSize = (uint)(sizeof(Double) * GuidelinesYCount); 243Double resource = vGuidelinesX.Internal_GetItem(i); 246sizeof(Double) 253Double resource = vGuidelinesY.Internal_GetItem(i); 256sizeof(Double)
Core\CSharp\System\Windows\Media\Generated\RenderDataDrawingContext.cs (14)
318Double radiusX, 319Double radiusY) 395Double radiusX, 397Double radiusY, 481Double radiusX, 482Double radiusY) 560Double radiusX, 562Double radiusY, 1109Double opacity) 1157Double opacity, 1336Double coordinate) 1385Double leadingCoordinate, 1386Double offsetToDrivenCoordinate) 1525Double baseValue,
Core\CSharp\System\Windows\Media\HitTestDrawingContextWalker.cs (4)
119Double radiusX, 120Double radiusY) 154Double radiusX, 155Double radiusY)
Core\CSharp\System\Windows\Media\HitTestWithGeometryDrawingContextWalker.cs (4)
257Double opacity) 313Double coordinate) 331Double leadingCoordinate, 332Double offsetToDrivenCoordinate)
Core\CSharp\System\Windows\Media\HitTestWithPointDrawingContextWalker.cs (4)
186Double opacity) 257Double coordinate) 278Double leadingCoordinate, 279Double offsetToDrivenCoordinate)
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (3)
328if (Double.IsNaN(value)) 385if (Double.IsNaN(value)) 1174if (Double.IsNaN(value))
Core\CSharp\System\Windows\Media\Visual.cs (16)
428bboxSubgraph.X = Double.NegativeInfinity; 429bboxSubgraph.Y = Double.NegativeInfinity; 430bboxSubgraph.Width = Double.PositiveInfinity; 431bboxSubgraph.Height = Double.PositiveInfinity; 623bboxSubgraph.X = Double.NegativeInfinity; 624bboxSubgraph.Y = Double.NegativeInfinity; 625bboxSubgraph.Width = Double.PositiveInfinity; 626bboxSubgraph.Height = Double.PositiveInfinity; 1081_bboxSubgraph.X = Double.NegativeInfinity; 1082_bboxSubgraph.Y = Double.NegativeInfinity; 1083_bboxSubgraph.Width = Double.PositiveInfinity; 1084_bboxSubgraph.Height = Double.PositiveInfinity; 1156bboxSubgraph.X = Double.NegativeInfinity; 1157bboxSubgraph.Y = Double.NegativeInfinity; 1158bboxSubgraph.Width = Double.PositiveInfinity; 1159bboxSubgraph.Height = Double.PositiveInfinity;
Core\CSharp\System\Windows\Media\VisualBrush.cs (2)
250element.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
Core\CSharp\System\Windows\Media3D\Generated\PointLightBase.cs (2)
292internal const double c_Range = Double.PositiveInfinity; 333Double.PositiveInfinity,
Core\CSharp\System\Windows\Media3D\Generated\ProjectionCamera.cs (2)
292internal const double c_FarPlaneDistance = (double)Double.PositiveInfinity; 333(double)Double.PositiveInfinity,
Core\CSharp\System\Windows\Media3D\PerspectiveCamera.cs (1)
89double m22 = zf != Double.PositiveInfinity ? zf/(zn-zf) : -1;
Core\CSharp\System\Windows\Media3D\Quaternion.cs (3)
169if (!(msin <= Double.MaxValue)) 262if (norm2 > Double.MaxValue) 442if (!(norm2 <= Double.MaxValue))
Core\CSharp\System\Windows\Media3D\Rect3D.cs (6)
623empty._x = Double.PositiveInfinity; 624empty._y = Double.PositiveInfinity; 625empty._z = Double.PositiveInfinity; 627empty._sizeX = Double.NegativeInfinity; 628empty._sizeY = Double.NegativeInfinity; 629empty._sizeZ = Double.NegativeInfinity;
Core\CSharp\System\Windows\Media3D\Size3D.cs (3)
196empty._x = Double.NegativeInfinity; 197empty._y = Double.NegativeInfinity; 198empty._z = Double.NegativeInfinity;
Core\CSharp\System\Windows\UIElement.cs (6)
1106Double.IsInfinity(newValue) || 1107DoubleUtil.AreClose(newValue, Double.MaxValue)) 1420return ( (!DoubleUtil.IsNaN(v.X) && !Double.IsPositiveInfinity(v.X) && !Double.IsNegativeInfinity(v.X)) 1421&& (!DoubleUtil.IsNaN(v.Y) && !Double.IsPositiveInfinity(v.Y) && !Double.IsNegativeInfinity(v.Y)));
PresentationFramework (406)
src\Framework\MS\Internal\AnimatedTypeHelpers.cs (17)
30private static Double InterpolateDouble(Double from, Double to, Double progress) 48private static Double AddDouble(Double value1, Double value2) 79private static Double GetSegmentLengthDouble(Double from, Double to) 99private static Double ScaleDouble(Double value, Double factor) 117private static bool IsValidAnimationValueDouble(Double value) 145private static Double GetZeroValueDouble(Double baseValue) 165return Double.IsInfinity(value)
src\Framework\MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (2)
206if (!Double.IsInfinity(pt.X) && !Double.IsInfinity(pt.Y))
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (2)
542double x = Double.Parse(xstr, NumberFormatInfo.InvariantInfo); 543double y = Double.Parse(ystr, NumberFormatInfo.InvariantInfo);
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (2)
318Point endPoint = new Point(Double.MaxValue, Double.MaxValue);
src\Framework\MS\Internal\Annotations\Component\AnnotationAdorner.cs (2)
141Size childConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity);
src\Framework\MS\Internal\Controls\InkCanvasInnerCanvas.cs (2)
90Size childConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity);
src\Framework\MS\Internal\Controls\TemplatedAdorner.cs (2)
155(_child).Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
src\Framework\MS\Internal\Data\DefaultValueConverter.cs (1)
536typeof(Int32), typeof(Int64), typeof(Single), typeof(Double),
src\Framework\MS\Internal\Documents\DocumentGrid.cs (5)
619if (Double.IsNaN(offset)) 662if (Double.IsNaN(offset)) 2187if (Double.IsNaN(offset)) 2207if (Double.IsNaN(offset)) 2282double minAspectDiff = Double.MaxValue; //The current optimal aspect ratio match
src\Framework\MS\Internal\Documents\TextDocumentView.cs (1)
2103double closestDistance = Double.MaxValue;
src\Framework\MS\Internal\Helper.cs (2)
578return !(Double.IsInfinity(value) || Double.IsNaN(value));
src\Framework\MS\Internal\PtsHost\FigureHelper.cs (1)
219value = Double.NaN;
src\Framework\MS\Internal\PtsHost\FloaterParagraph.cs (5)
220if (Double.IsInfinity(StructuralCache.CurrentFormatContext.PageHeight)) 279if(fsbbox.fsrc.du < subpageWidth && Double.IsNaN(specifiedWidth) && HorizontalAlignment != HorizontalAlignment.Stretch) 462if(fsbbox.fsrc.du < subpageWidth && Double.IsNaN(specifiedWidth) && HorizontalAlignment != HorizontalAlignment.Stretch) 673if (!Double.IsNaN(specifiedWidth)) 909return Double.NaN;
src\Framework\MS\Internal\PtsHost\Line.cs (2)
371pageHeight = Double.PositiveInfinity; 1292private double _trackWidth = Double.NaN;
src\Framework\MS\Internal\PtsHost\MbpInfo.cs (16)
141Double.IsNaN(mbp.Margin.Left) ? defaultMargin.Left : mbp.Margin.Left, 142Double.IsNaN(mbp.Margin.Top) ? defaultMargin.Top : mbp.Margin.Top, 143Double.IsNaN(mbp.Margin.Right) ? defaultMargin.Right : mbp.Margin.Right, 144Double.IsNaN(mbp.Margin.Bottom) ? defaultMargin.Bottom : mbp.Margin.Bottom); 166Double.IsNaN(mbp.Padding.Left) ? defaultPadding.Left : mbp.Padding.Left, 167Double.IsNaN(mbp.Padding.Top) ? defaultPadding.Top : mbp.Padding.Top, 168Double.IsNaN(mbp.Padding.Right) ? defaultPadding.Right : mbp.Padding.Right, 169Double.IsNaN(mbp.Padding.Bottom) ? defaultPadding.Bottom : mbp.Padding.Bottom); 340Double.IsNaN(_padding.Left) || 341Double.IsNaN(_padding.Right) || 342Double.IsNaN(_padding.Top) || 343Double.IsNaN(_padding.Bottom)); 355Double.IsNaN(_margin.Left) || 356Double.IsNaN(_margin.Right) || 357Double.IsNaN(_margin.Top) || 358Double.IsNaN(_margin.Bottom));
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (1)
247pageHeight = Double.PositiveInfinity;
src\Framework\MS\Internal\PtsHost\UIElementParagraph.cs (1)
431elementHeight = Double.PositiveInfinity;
src\Framework\MS\Internal\Text\LineProperties.cs (1)
62if (LineStackingStrategy == LineStackingStrategy.BlockLineHeight && !Double.IsNaN(_lineHeight))
src\Framework\MS\Internal\Text\MarkerProperties.cs (1)
38if (Double.IsNaN(_offset))
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (4)
319decorator.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity)); 360decorator.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
src\Framework\System\Windows\Controls\BorderGapMaskConverter.cs (1)
85lineWidth = Double.Parse(((string)parameter), NumberFormatInfo.InvariantInfo);
src\Framework\System\Windows\Controls\Canvas.cs (6)
220new FrameworkPropertyMetadata(Double.NaN, new PropertyChangedCallback(OnPositioningChanged)), 231new FrameworkPropertyMetadata(Double.NaN, new PropertyChangedCallback(OnPositioningChanged)), 243new FrameworkPropertyMetadata(Double.NaN, new PropertyChangedCallback(OnPositioningChanged)), 254new FrameworkPropertyMetadata(Double.NaN, new PropertyChangedCallback(OnPositioningChanged)), 274Size childConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity);
src\Framework\System\Windows\Controls\DataGrid.cs (5)
210return !(value < 0d || DoubleUtil.IsNaN(value) || Double.IsPositiveInfinity(value)); 1264var newValue = (double)e.NewValue; 6473double closestDistance = Double.PositiveInfinity; 6606distance = Double.PositiveInfinity; 8551else if (!Double.IsNaN(RowHeaderWidth))
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (1)
2029if (!DoubleUtil.IsNaN(rowPresenterAvailableSize.Width) && !Double.IsInfinity(rowPresenterAvailableSize.Width))
src\Framework\System\Windows\Controls\DataGridColumn.cs (2)
459return !(value < 0d || DoubleUtil.IsNaN(value) || Double.IsPositiveInfinity(value)); 536return Double.PositiveInfinity;
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (7)
904!DoubleUtil.IsNaN(availableStarSpace) && !Double.IsNegativeInfinity(availableStarSpace), 1571double minPerStarExcessRatio = Double.PositiveInfinity; 1608minPerStarExcessRatio = Double.PositiveInfinity; 1826double minPerStarLagRatio = Double.PositiveInfinity; 1858minPerStarLagRatio = Double.PositiveInfinity; 2060double minLagWidth = Double.PositiveInfinity; 2323double minExcessWidth = Double.PositiveInfinity;
src\Framework\System\Windows\Controls\DataGridLength.cs (5)
57: this(value, type, (type == DataGridLengthUnitType.Pixel ? value : Double.NaN), (type == DataGridLengthUnitType.Pixel ? value : Double.NaN)) 80if (DoubleUtil.IsNaN(value) || Double.IsInfinity(value)) 98if (Double.IsInfinity(desiredValue)) 105if (Double.IsInfinity(displayValue))
src\Framework\System\Windows\Controls\DataGridLengthConverter.cs (1)
100if (!Double.IsInfinity(doubleValue))
src\Framework\System\Windows\Controls\DefinitionBase.cs (1)
221return (!DoubleUtil.IsNaN(v) && v >= 0.0d && !Double.IsPositiveInfinity(v));
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (2)
1837return (!Double.IsNaN(value) && !Double.IsInfinity(value) && DoubleUtil.GreaterThan(value, 0d));
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1728return (!Double.IsNaN(value) && !Double.IsInfinity(value) && DoubleUtil.GreaterThan(value, 0d));
src\Framework\System\Windows\Controls\Grid.cs (9)
1832if (Double.IsPositiveInfinity(maxStar)) 1842double power = Math.Floor(Math.Log(Double.MaxValue / maxStar / starCount, 2.0)); 1894if (!Double.IsPositiveInfinity(effectiveMaxSize)) 1939double minRatio = (minCount > 0) ? tempDefinitions[minCount - 1].MeasureSize : Double.PositiveInfinity; 2414if (Double.IsPositiveInfinity(maxStar)) 2424double power = Math.Floor(Math.Log(Double.MaxValue / maxStar / starCount, 2.0)); 2472if (!Double.IsPositiveInfinity(effectiveMaxSize)) 2552double minRatio = (minCount > 0) ? definitions[definitionIndices[minCount - 1]].MeasureSize : Double.PositiveInfinity; 3316return (Double.IsPositiveInfinity(def.UserSize.Value)) ? 1.0 : 0.0;
src\Framework\System\Windows\Controls\GridSplitter.cs (1)
268return delta > 0.0 && !Double.IsPositiveInfinity(delta);
src\Framework\System\Windows\Controls\GridViewColumn.cs (6)
46_state = Double.IsNaN(Width) ? ColumnMeasureState.Init : ColumnMeasureState.SpecificWidth; 384Double.NaN /* default value */, 408c.State = Double.IsNaN(newWidth) ? ColumnMeasureState.Init : ColumnMeasureState.SpecificWidth; 426if (Double.IsNaN(value) || Double.IsInfinity(value) || value < 0.0) 533_state = Double.IsNaN(Width) ? ColumnMeasureState.Init : ColumnMeasureState.SpecificWidth;
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (2)
715if (Double.IsNaN(Column.Width)) 721Column.Width = Double.NaN;
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1128paddingHeader.Width = Double.NaN;
src\Framework\System\Windows\Controls\InkCanvas.cs (6)
437new FrameworkPropertyMetadata(Double.NaN, new PropertyChangedCallback(OnPositioningChanged)), 471new FrameworkPropertyMetadata(Double.NaN, new PropertyChangedCallback(OnPositioningChanged)), 505new FrameworkPropertyMetadata(Double.NaN, new PropertyChangedCallback(OnPositioningChanged)), 539new FrameworkPropertyMetadata(Double.NaN, new PropertyChangedCallback(OnPositioningChanged)), 1916Double.IsInfinity(point.X)|| 1917Double.IsInfinity(point.Y) )
src\Framework\System\Windows\Controls\ItemsControl.cs (4)
3027viewPortBounds = new Rect(Double.NegativeInfinity, viewPortBounds.Top, 3028Double.PositiveInfinity, viewPortBounds.Height); 3032viewPortBounds = new Rect(viewPortBounds.Left, Double.NegativeInfinity, 3033viewPortBounds.Width, Double.PositiveInfinity);
src\Framework\System\Windows\Controls\MenuScrollingVisibilityConverter.cs (1)
85target = Double.Parse(((string)parameter), NumberFormatInfo.InvariantInfo);
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
113childConstraint.Width = Double.PositiveInfinity;
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (5)
241if (!Double.IsInfinity(availableSize.Width) || !Double.IsInfinity(availableSize.Height)) 244if (Double.IsInfinity(availableSize.Width)) 250else if (Double.IsInfinity(availableSize.Height)) 600Invariant.Assert(!DoubleUtil.LessThanOrClose(pageZoom, 0d) && !Double.IsInfinity(pageZoom));
src\Framework\System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
201DesiredWidthList.Add(Double.NaN);
src\Framework\System\Windows\Controls\Primitives\Popup.cs (2)
2242limitSize = new Size(Double.PositiveInfinity, Double.PositiveInfinity);
src\Framework\System\Windows\Controls\Primitives\PopupRoot.cs (4)
146Size desiredSize = new Size(Double.PositiveInfinity, Double.PositiveInfinity); 194Size restricted1DDesiredSize = new Size(restrictWidth ? restrictedSize.Width : Double.PositiveInfinity, 195restrictHeight ? restrictedSize.Height : Double.PositiveInfinity);
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (4)
438if (_scrollData._canHorizontallyScroll) { childConstraint.Width = Double.PositiveInfinity; } 439if (_scrollData._canVerticallyScroll) { childConstraint.Height = Double.PositiveInfinity; } 820if (Double.IsInfinity(viewport.Width)) viewport.Width = extent.Width; 821if (Double.IsInfinity(viewport.Height)) viewport.Height = extent.Height;
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (2)
308if (Double.IsNaN(offset)) 325if (Double.IsNaN(offset))
src\Framework\System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (2)
35new FrameworkPropertyMetadata(Double.NaN, FrameworkPropertyMetadataOptions.AffectsMeasure), 51return (DoubleUtil.IsNaN(v)) || (DoubleUtil.GreaterThanOrClose(v, 0d) && !Double.IsPositiveInfinity(v));
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (2)
251layoutSlotSize.Width = Double.PositiveInfinity; 256layoutSlotSize.Height = Double.PositiveInfinity;
src\Framework\System\Windows\Controls\Primitives\Track.cs (4)
669ThumbCenterOffset = Double.NaN; 670Density = Double.NaN; 864private double _density = Double.NaN; 865private double _thumbCenterOffset = Double.NaN;
src\Framework\System\Windows\Controls\RichTextBox.cs (1)
317if (constraint.Width == Double.PositiveInfinity)
src\Framework\System\Windows\Controls\ScrollViewer.cs (8)
121public void ScrollToLeftEnd() { EnqueueCommand(Commands.SetHorizontalOffset, Double.NegativeInfinity, null); } 125public void ScrollToRightEnd() { EnqueueCommand(Commands.SetHorizontalOffset, Double.PositiveInfinity, null); } 132EnqueueCommand(Commands.SetHorizontalOffset, Double.NegativeInfinity, null); 133EnqueueCommand(Commands.SetVerticalOffset, Double.NegativeInfinity, null); 140EnqueueCommand(Commands.SetHorizontalOffset, Double.NegativeInfinity, null); 141EnqueueCommand(Commands.SetVerticalOffset, Double.PositiveInfinity, null); 147public void ScrollToTop() { EnqueueCommand(Commands.SetVerticalOffset, Double.NegativeInfinity, null); } 151public void ScrollToBottom() { EnqueueCommand(Commands.SetVerticalOffset, Double.PositiveInfinity, null); }
src\Framework\System\Windows\Controls\SinglePageViewer.cs (2)
1457return (!Double.IsNaN(value) && !Double.IsInfinity(value) && DoubleUtil.GreaterThan(value, 0d));
src\Framework\System\Windows\Controls\Slider.cs (1)
1353Double snappedValue = SnapToTick(value);
src\Framework\System\Windows\Controls\Stack.cs (6)
578layoutSlotSize.Width = Double.PositiveInfinity; 579if (measureElement.IsScrolling && measureElement.CanVerticallyScroll) { layoutSlotSize.Height = Double.PositiveInfinity; } 585layoutSlotSize.Height = Double.PositiveInfinity; 586if (measureElement.IsScrolling && measureElement.CanHorizontallyScroll) { layoutSlotSize.Width = Double.PositiveInfinity; } 996if (Double.IsNegativeInfinity(offset)) 1000else if (Double.IsPositiveInfinity(offset))
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (2)
807nextLineStart = textView.GetPositionAtNextLine(lineRange.End, Double.NaN, 1, out newSuggestedX, out linesMoved); 834previousLineEnd = textView.GetPositionAtNextLine(lineRange.Start, Double.NaN, -1, out newSuggestedX, out linesMoved);
src\Framework\System\Windows\Controls\ToolBarTray.cs (2)
368Size childConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity);
src\Framework\System\Windows\Controls\ViewBox.cs (4)
326Size infinteConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity); 390bool isConstrainedWidth = !Double.IsPositiveInfinity(availableSize.Width); 391bool isConstrainedHeight = !Double.IsPositiveInfinity(availableSize.Height);
src\Framework\System\Windows\Controls\VirtualizationCacheLengthConverter.cs (1)
223lengths[i] = Double.Parse(th.GetCurrentToken(), cultureInfo);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (42)
2309childConstraint.Width = Double.PositiveInfinity; 2310if (IsScrolling && CanVerticallyScroll) { childConstraint.Height = Double.PositiveInfinity; } 2314childConstraint.Height = Double.PositiveInfinity; 2315if (IsScrolling && CanHorizontallyScroll) { childConstraint.Width = Double.PositiveInfinity; } 4401Double.PositiveInfinity, 4404Double.PositiveInfinity); 4446List<Double> offsetList = EffectiveOffsetInformationField.GetValue(container); 4507viewport.Width = Double.PositiveInfinity; 4511viewport.Height = Double.PositiveInfinity; 4598if (Double.IsPositiveInfinity(factor)) 5578List<Double> childOffsetList = EffectiveOffsetInformationField.GetValue(firstContainer); 5593List<Double> offsetList = EffectiveOffsetInformationField.GetValue(container); 5596offsetList = new List<Double>(2); 9525if (Double.IsPositiveInfinity(constraint.Height)) 9552if (Double.IsPositiveInfinity(constraint.Width)) 9570if (!Double.IsPositiveInfinity(constraint.Width)) 9575if (!Double.IsPositiveInfinity(constraint.Height)) 9859viewportOffset.X = Double.PositiveInfinity; 9882viewportOffset.X = Double.PositiveInfinity; 9914viewportOffset.X = Double.PositiveInfinity; 9982viewportOffset.Y = Double.PositiveInfinity; 10076viewportOffset.Y = Double.PositiveInfinity; 10099viewportOffset.Y = Double.PositiveInfinity; 10131viewportOffset.Y = Double.PositiveInfinity; 10198viewportOffset.X = Double.PositiveInfinity; 10377if (Double.IsPositiveInfinity(constraint.Height)) 10404if (Double.IsPositiveInfinity(constraint.Width)) 10422if (!Double.IsPositiveInfinity(constraint.Width)) 10427if (!Double.IsPositiveInfinity(constraint.Height)) 10532viewportOffset.X = Double.PositiveInfinity; 10567viewportOffset.X = Double.PositiveInfinity; 10663viewportOffset.Y = Double.PositiveInfinity; 10698viewportOffset.Y = Double.PositiveInfinity; 11600private static readonly UncommonField<List<Double>> EffectiveOffsetInformationField = new UncommonField<List<Double>>(); 11826private class UniformOrAverageContainerSizeDual : Tuple<Double, Double> 11828public UniformOrAverageContainerSizeDual(Double pixelSize, Double itemSize) 11833public Double PixelSize 11838public Double ItemSize 12722internal List<Double> _effectiveOffsets;
src\Framework\System\Windows\Controls\WrapPanel.cs (3)
81return (DoubleUtil.IsNaN(v)) || (v >= 0.0d && !Double.IsPositiveInfinity(v)); 93Double.NaN, 122Double.NaN,
src\Framework\System\Windows\CornerRadius.cs (8)
217if (Double.IsPositiveInfinity(_topLeft) || Double.IsPositiveInfinity(_topRight) || Double.IsPositiveInfinity(_bottomLeft) || Double.IsPositiveInfinity(_bottomRight)) 225if (Double.IsNegativeInfinity(_topLeft) || Double.IsNegativeInfinity(_topRight) || Double.IsNegativeInfinity(_bottomLeft) || Double.IsNegativeInfinity(_bottomRight))
src\Framework\System\Windows\Documents\AdornerLayer.cs (2)
552adornerInfo.RenderSize = new Size(Double.NaN, Double.NaN);
src\Framework\System\Windows\Documents\AnchoredBlock.cs (2)
104new Thickness(Double.NaN), 123new Thickness(Double.NaN),
src\Framework\System\Windows\Documents\Block.cs (9)
515if (Double.IsNaN(lineHeight)) 560if (Double.IsNaN(t.Left) || Double.IsNaN(t.Right) || Double.IsNaN(t.Top) || Double.IsNaN(t.Bottom)) 565if (!Double.IsNaN(t.Left) && (t.Left < 0 || t.Left > maxThickness)) 569if (!Double.IsNaN(t.Right) && (t.Right < 0 || t.Right > maxThickness)) 573if (!Double.IsNaN(t.Top) && (t.Top < 0 || t.Top > maxThickness)) 577if (!Double.IsNaN(t.Bottom) && (t.Bottom < 0 || t.Bottom > maxThickness))
src\Framework\System\Windows\Documents\ColumnResizeAdorner.cs (3)
51_x = Double.NaN; 52_top = Double.NaN; 53_height = Double.NaN;
src\Framework\System\Windows\Documents\Figure.cs (1)
302if (Double.IsNaN(offset))
src\Framework\System\Windows\Documents\FixedPage.cs (6)
464new FrameworkPropertyMetadata(Double.NaN, FrameworkPropertyMetadataOptions.AffectsParentArrange)); 481new FrameworkPropertyMetadata(Double.NaN, FrameworkPropertyMetadataOptions.AffectsParentArrange)); 498new FrameworkPropertyMetadata(Double.NaN, FrameworkPropertyMetadataOptions.AffectsParentArrange)); 516new FrameworkPropertyMetadata(Double.NaN, FrameworkPropertyMetadataOptions.AffectsParentArrange)); 778Size childConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity);
src\Framework\System\Windows\Documents\FixedTextView.cs (5)
84if (point.Y == Double.MaxValue && point.X == Double.MaxValue) 841double closestDistance = Double.MaxValue; 916if (Double.IsInfinity(suggestedX)) 925double closestDistance = Double.MaxValue;
src\Framework\System\Windows\Documents\Floater.cs (2)
106Double.NaN, 134if (Double.IsNaN(width))
src\Framework\System\Windows\Documents\FlowDocument.cs (8)
704new Thickness(Double.NaN), 1539if (Double.IsNaN(value)) 1554if (Double.IsNaN(value)) 1558if (!Double.IsNegativeInfinity(value) && (value < 0 || value > maxSize)) 1569if (Double.IsNaN(value)) 1573if (!Double.IsPositiveInfinity(value) && (value < 0 || value > maxSize)) 1590if (Double.IsNaN(ruleWidth) || ruleWidth < 0 || ruleWidth > maxRuleWidth) 1601if (Double.IsNaN(gap))
src\Framework\System\Windows\Documents\Glyphs.cs (2)
867new FrameworkPropertyMetadata(Double.NaN, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender, new PropertyChangedCallback(OriginPropertyChanged))); 890new FrameworkPropertyMetadata(Double.NaN, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender, new PropertyChangedCallback(OriginPropertyChanged)));
src\Framework\System\Windows\Documents\ImmComposition.cs (1)
2023if (Double.IsNaN(value))
src\Framework\System\Windows\Documents\List.cs (2)
124Double.NaN, 340if (Double.IsNaN(value))
src\Framework\System\Windows\Documents\Paragraph.cs (6)
243return (Double.IsNaN(margin.Left) && Double.IsNaN(margin.Right) && Double.IsNaN(margin.Top) && Double.IsNaN(margin.Bottom)); 248return (Double.IsNaN(lineHeight)); 312if (Double.IsNaN(indent))
src\Framework\System\Windows\Documents\Table.cs (2)
55MarginProperty.OverrideMetadata(typeof(Table), new FrameworkPropertyMetadata(new Thickness(Double.NaN))); 396if (Double.IsNaN(spacing))
src\Framework\System\windows\Documents\TextEditor.cs (1)
2051internal Double _suggestedX;
src\Framework\System\windows\Documents\TextEditorSelection.cs (6)
118This._suggestedX = Double.NaN; 2243private static Double GetSuggestedX(TextEditor This, out ITextPointer innerMovingPosition) 2253return Double.NaN; // This value is not supposed to be used by a caller. 2256if (Double.IsNaN(This._suggestedX)) 2291private static Double GetSuggestedYFromPosition(TextEditor This, ITextPointer position) 2293double suggestedY = Double.NaN;
src\Framework\System\Windows\Documents\TextElement.cs (1)
1659if (Double.IsNaN(fontSize))
src\Framework\System\Windows\Documents\TextPointerBase.cs (1)
817position = textView.GetPositionAtNextLine(thisPointer, Double.NaN, count, out newSuggestedX, out count);
src\Framework\System\Windows\FontSizeConverter.cs (1)
98if (value is System.Int32 || value is System.Single || value is System.Double)
src\Framework\System\Windows\FrameworkElement.cs (36)
3460return (DoubleUtil.IsNaN(v)) || (v >= 0.0d && !Double.IsPositiveInfinity(v)); 3466return (!DoubleUtil.IsNaN(v) && v >= 0.0d && !Double.IsPositiveInfinity(v)); 3492Double.NaN, 3544Double.PositiveInfinity, 3571Double.NaN, 3623Double.PositiveInfinity, 4064double height = (DoubleUtil.IsNaN(l) ? Double.PositiveInfinity : l); 4074double width = (DoubleUtil.IsNaN(l) ? Double.PositiveInfinity : l); 4133Double xConstr = transformSpaceBounds.Width; 4134Double yConstr = transformSpaceBounds.Height; 4140bool xConstrInfinite = Double.IsInfinity(xConstr); 4141bool yConstrInfinite = Double.IsInfinity(yConstr); 4145return new Size(Double.PositiveInfinity, Double.PositiveInfinity); 4165Double a = trMatrix.M11; 4166Double b = trMatrix.M12; 4167Double c = trMatrix.M21; 4168Double d = trMatrix.M22; 4171Double w=0, h=0; 4180Double yCoverD = (yConstrInfinite ? Double.PositiveInfinity : Math.Abs(yConstr/d)); 4181Double xCoverA = (xConstrInfinite ? Double.PositiveInfinity : Math.Abs(xConstr/a)); 4220Double yCoverB = Math.Abs(yConstr/b); 4221Double xCoverC = Math.Abs(xConstr/c); 4258Double xCoverA = Math.Abs(xConstr / a); // w-intercept of x-constraint line. 4259Double xCoverC = Math.Abs(xConstr / c); // h-intercept of x-constraint line. 4261Double yCoverB = Math.Abs(yConstr / b); // w-intercept of y-constraint line. 4262Double yCoverD = Math.Abs(yConstr / d); // h-intercept of y-constraint line. 4287Double expandFactor = Math.Min(xConstr / childBoundsTr.Width, 4289if( !Double.IsNaN(expandFactor) 4290&& !Double.IsInfinity(expandFactor)) 4906double maxWidthClip = (Double.IsPositiveInfinity(mm.maxWidth) ? inkSize.Width : mm.maxWidth); 4907double maxHeightClip = (Double.IsPositiveInfinity(mm.maxHeight) ? inkSize.Height : mm.maxHeight); 5243double maxWidthClip = (Double.IsPositiveInfinity(mm.maxWidth) ? inkSize.Width : mm.maxWidth); 5244double maxHeightClip = (Double.IsPositiveInfinity(mm.maxHeight) ? inkSize.Height : mm.maxHeight);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (1)
3590private const double BASELINE_DEFAULT = Double.MinValue;
src\Framework\System\Windows\Interop\ActiveXHost.cs (2)
232if (Double.IsPositiveInfinity(swConstraint.Width)) 237if (Double.IsPositiveInfinity(swConstraint.Height))
src\Framework\System\Windows\LengthConverter.cs (1)
203if (goodString == "auto") return Double.NaN;
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
260case 168: t = () => typeof(Double); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3766typeof(System.Double),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5712case KnownElements.Double: t = typeof(System.Double); break;
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (6)
394Double currentSegmentProgress = 0.0; 450Double currentRepeat = (Double)(animationClock.CurrentIteration - 1); 942List<Double> segmentLengths = new List<Double>(); 950Double totalLength = 0.0;
src\Framework\System\Windows\Media\Animation\Storyboard.cs (12)
1292public Nullable<Double> GetCurrentGlobalSpeed( FrameworkElement containingObject ) 1302public Nullable<Double> GetCurrentGlobalSpeed( FrameworkContentElement containingObject ) 1311public Double GetCurrentGlobalSpeed() 1313Nullable<Double> currentGlobalSpeed = GetCurrentGlobalSpeedImpl(this); 1321return default(Double); 1325private Nullable<Double> GetCurrentGlobalSpeedImpl( DependencyObject containingObject ) 1390public Nullable<Double> GetCurrentProgress( FrameworkElement containingObject ) 1399public Nullable<Double> GetCurrentProgress( FrameworkContentElement containingObject ) 1408public Double GetCurrentProgress() 1410Nullable<Double> currentProgress = GetCurrentProgressImpl(this); 1418return default(Double); 1422private Nullable<Double> GetCurrentProgressImpl( DependencyObject containingObject )
src\Framework\System\Windows\Shapes\Ellipse.cs (4)
95if (Double.IsInfinity(width) && Double.IsInfinity(height)) 99else if (Double.IsInfinity(width) || Double.IsInfinity(height))
src\Framework\System\Windows\Shapes\Rectangle.cs (4)
147if (Double.IsInfinity(width) && Double.IsInfinity(height)) 151else if (Double.IsInfinity(width) || Double.IsInfinity(height))
src\Framework\System\Windows\Shapes\Shape.cs (5)
532return !(Double.IsInfinity(d) || DoubleUtil.IsNaN(d) || d < 0.0); 537return !(Double.IsInfinity(d) || DoubleUtil.IsNaN(d)); 542return !(Double.IsInfinity(d)); 608if (geometryBounds.Width > xScale * Double.Epsilon) 622if (geometryBounds.Height > yScale * Double.Epsilon)
src\Framework\System\Windows\Thickness.cs (8)
170if(Double.IsPositiveInfinity(Left) || Double.IsPositiveInfinity(Right) || Double.IsPositiveInfinity(Top) || Double.IsPositiveInfinity(Bottom)) 178if(Double.IsNegativeInfinity(Left) || Double.IsNegativeInfinity(Right) || Double.IsNegativeInfinity(Top) || Double.IsNegativeInfinity(Bottom))
src\Framework\System\Windows\Window.cs (23)
993Double.NaN, 1044Double.NaN, 2854if (!Double.IsPositiveInfinity(maxSizeDeviceUnits.X) && (sizeDeviceUnits.Width > maxSizeDeviceUnits.X)) 2860if (!Double.IsPositiveInfinity(minSizeDeviceUnits.Y) && (sizeDeviceUnits.Height > maxSizeDeviceUnits.Y)) 3494childConstraint.Width = ((constraint.Width == Double.PositiveInfinity) ? Double.PositiveInfinity : Math.Max(0.0, (constraint.Width - frameSize.Width))); 3495childConstraint.Height = ((constraint.Height == Double.PositiveInfinity) ? Double.PositiveInfinity : Math.Max(0.0, (constraint.Height - frameSize.Height))); 3558if (!Double.IsPositiveInfinity(MaxWidth)) 3580if (!Double.IsPositiveInfinity(MaxHeight)) 5951if (!Double.IsPositiveInfinity(l) && !DoubleUtil.IsNaN(l) && 5962if (Double.IsPositiveInfinity(length) || 5963Double.IsNegativeInfinity(length)) 6405Invariant.Assert(!Double.IsNaN(_actualLeft), "_actualLeft cannot be NaN after show"); 6406UpdateHwndPositionOnTopLeftChange(Double.IsNaN(Left) ? _actualLeft : Left, newTop); 6500Invariant.Assert(!Double.IsNaN(_actualTop), "_actualTop cannot be NaN after show"); 6501UpdateHwndPositionOnTopLeftChange(newLeft, Double.IsNaN(Top) ? _actualTop : Top); 7649private double _trackMaxWidthDeviceUnits = Double.PositiveInfinity; 7650private double _trackMaxHeightDeviceUnits = Double.PositiveInfinity; 7651private double _windowMaxWidthDeviceUnits = Double.PositiveInfinity; 7652private double _windowMaxHeightDeviceUnits = Double.PositiveInfinity; 7659private double _actualTop = Double.NaN; 7666private double _actualLeft = Double.NaN;
PresentationFramework.Aero (6)
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (4)
58if (width <= 0.0 || Double.IsInfinity(width) || Double.IsNaN(width) || 59height <= 0.0 || Double.IsInfinity(height) || Double.IsNaN(height) )
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
193if (!Double.IsInfinity(childWidth)) 198if (!Double.IsInfinity(childHeight))
PresentationFramework.Classic (6)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
193if (!Double.IsInfinity(childWidth)) 198if (!Double.IsInfinity(childHeight))
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (4)
72if (width <= 0.0 || Double.IsInfinity(width) || Double.IsNaN(width) || 73height <= 0.0 || Double.IsInfinity(height) || Double.IsNaN(height) )
PresentationFramework.Luna (6)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
193if (!Double.IsInfinity(childWidth)) 198if (!Double.IsInfinity(childHeight))
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (4)
72if (width <= 0.0 || Double.IsInfinity(width) || Double.IsNaN(width) || 73height <= 0.0 || Double.IsInfinity(height) || Double.IsNaN(height) )
PresentationFramework.Royale (6)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
193if (!Double.IsInfinity(childWidth)) 198if (!Double.IsInfinity(childHeight))
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (4)
72if (width <= 0.0 || Double.IsInfinity(width) || Double.IsNaN(width) || 73height <= 0.0 || Double.IsInfinity(height) || Double.IsNaN(height) )
System (10)
compmod\microsoft\csharp\csharpcodeprovider.cs (2)
1246else if (e.Value is Double) { 1247GenerateDoubleValue((Double)e.Value);
compmod\system\codedom\compiler\CodeGenerator.cs (3)
1523else if (e.Value is Double) { 1524GenerateDoubleValue((Double)e.Value); 1552protected virtual void GenerateDoubleValue(Double d) {
compmod\system\componentmodel\DoubleConverter.cs (4)
43return typeof(Double); 58return Double.Parse(value, NumberStyles.Float, formatInfo); 66return Double.Parse(value, culture); 73return ((Double)value).ToString("R", formatInfo);
sys\System\IO\compression\FastEncoder.cs (1)
33internal Double LastCompressionRatio {
System.Activities (1)
System\Activities\Debugger\DebugInfo.cs (1)
382else if (t == typeof(Double))
System.Activities.Core.Presentation (15)
System\Activities\Core\Presentation\FlowchartDesigner.Container.cs (2)
428Point topLeft = new Point(Double.PositiveInfinity, Double.PositiveInfinity);
System\Activities\Core\Presentation\FlowchartDesigner.ModelChangeReactions.cs (2)
56this.StartSymbol.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (4)
2644Double detX = shapeLocation.X - (lastShape.X + FreeFormPanel.GridSize); 2645Double detY = shapeLocation.Y - (lastShape.Y + FreeFormPanel.GridSize); 2653Double offsetX = Math.Ceiling(-detX / FreeFormPanel.GridSize) * FreeFormPanel.GridSize; 2654Double offsetY = Math.Ceiling(-detY / FreeFormPanel.GridSize) * FreeFormPanel.GridSize;
System\Activities\Core\Presentation\FlowchartExpressionAdorner.cs (2)
53tooltip.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
System\Activities\Core\Presentation\FlowSwitchCaseEditorDialog.cs (1)
56Width = Double.NaN,
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (2)
444Point topLeft = new Point(Double.PositiveInfinity, Double.PositiveInfinity);
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (2)
481this.initialNode.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
System.Activities.Presentation (14)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\StringEditor.cs (1)
280Double borderWidth = this.BorderWidth;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (10)
26public static readonly DependencyProperty RequiredWidthProperty = DependencyProperty.Register("RequiredWidth", typeof(Double), typeof(FreeFormPanel), new FrameworkPropertyMetadata(double.NaN)); 27public static readonly DependencyProperty RequiredHeightProperty = DependencyProperty.Register("RequiredHeight", typeof(Double), typeof(FreeFormPanel), new FrameworkPropertyMetadata(double.NaN)); 351width = (width < this.Width) ? (this.Width < Double.MaxValue ? this.Width : width) : width; 354height = (height < this.Height) ? (this.Height < Double.MaxValue ? this.Height : height) : height; 393width = (width < this.Width) ? (this.Width < Double.MaxValue ? this.Width : width) : width; 394height = (height < this.Height) ? (this.Height < Double.MaxValue ? this.Height : height) : height; 422connectorChild.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity)); 431child.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
System.Activities.Presentation\System\Activities\Presentation\View\SearchToolTipAdorner.cs (2)
45tooltip.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
2056double convertedValue = Double.NaN;
System.AddIn (1)
System\Addin\MiniReflection\MiniParameterInfo.cs (1)
103return new TypeInfo(typeof(Double));
System.AddIn.Contract (5)
System\Addin\Contract\RemoteArgument.cs (5)
487public RemoteArgument(System.Double value) 495public RemoteArgument(System.Double value, bool isByRef) 1045public System.Double DoubleValue 1053return default(System.Double); 1059return (System.Double)this._value;
System.Core (13)
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
528if (type == typeof(Double)) {
Microsoft\Scripting\Ast\ParameterExpression.cs (1)
55case TypeCode.Double: return new PrimitiveParameterExpression<Double>(name);
Microsoft\Scripting\Compiler\ILGen.cs (2)
661} else if (typeTo == typeof(Double)) { 1034il.Emit(OpCodes.Ldc_R8, default(Double));
Microsoft\Win32\UnsafeNativeMethods.cs (1)
759public Double Double;
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (3)
1235if (val.Reference == IntPtr.Zero) return new Double[0]; 1236Double[] arDouble = new Double[val.Count];
System\Linq\Enumerable.cs (5)
1628if (x < value || System.Double.IsNaN(x)) value = x; 1644if (value == null || x < value || System.Double.IsNaN((double)x)) value = x; 1805if (x > value || System.Double.IsNaN(value)) value = x; 1821if (value == null || x > value || System.Double.IsNaN((double)value)) value = x; 1832if (x > value || System.Double.IsNaN(value)) value = x;
System.Data (121)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\StringEditor.cs (1)
280Double borderWidth = this.BorderWidth;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (10)
26public static readonly DependencyProperty RequiredWidthProperty = DependencyProperty.Register("RequiredWidth", typeof(Double), typeof(FreeFormPanel), new FrameworkPropertyMetadata(double.NaN)); 27public static readonly DependencyProperty RequiredHeightProperty = DependencyProperty.Register("RequiredHeight", typeof(Double), typeof(FreeFormPanel), new FrameworkPropertyMetadata(double.NaN)); 351width = (width < this.Width) ? (this.Width < Double.MaxValue ? this.Width : width) : width; 354height = (height < this.Height) ? (this.Height < Double.MaxValue ? this.Height : height) : height; 393width = (width < this.Width) ? (this.Width < Double.MaxValue ? this.Width : width) : width; 394height = (height < this.Height) ? (this.Height < Double.MaxValue ? this.Height : height) : height; 422connectorChild.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity)); 431child.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\SearchToolTipAdorner.cs (2)
45tooltip.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
2056double convertedValue = Double.NaN;
fx\src\data\Microsoft\SqlServer\Server\ITypedGetters.cs (1)
43Double GetDouble( int ordinal );
fx\src\data\Microsoft\SqlServer\Server\ITypedGettersV3.cs (1)
61Double GetDouble( SmiEventSink sink, int ordinal );
fx\src\data\Microsoft\SqlServer\Server\ITypedSetters.cs (1)
38void SetDouble( int ordinal, Double value );
fx\src\data\Microsoft\SqlServer\Server\ITypedSettersV3.cs (1)
70void SetDouble( SmiEventSink sink, int ordinal, Double value );
fx\src\data\Microsoft\SqlServer\Server\MemoryRecordBuffer.cs (2)
95public override Double GetDouble(SmiEventSink sink, int ordinal) { 192public override void SetDouble(SmiEventSink sink, int ordinal, Double value) {
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
99ht.Add( typeof( System.Double ), ExtendedClrTypeCode.Double ); 306else if (value.GetType() == typeof( Double ))
fx\src\data\Microsoft\SqlServer\Server\SmiRecordBuffer.cs (2)
202public virtual Double GetDouble( int ordinal ) { 545public virtual void SetDouble( int ordinal, Double value ) {
fx\src\data\Microsoft\SqlServer\Server\SmiRequestExecutor.cs (2)
260public virtual Double GetDouble( int ordinal ) { 603public virtual void SetDouble( int ordinal, Double value ) {
fx\src\data\Microsoft\SqlServer\Server\SmiTypedGetterSetter.cs (2)
161public virtual Double GetDouble(SmiEventSink sink, int ordinal) { 361public virtual void SetDouble(SmiEventSink sink, int ordinal, Double value) {
fx\src\data\Microsoft\SqlServer\Server\SqlRecordBuffer.cs (2)
45[FieldOffset(0)] internal Double _double; 134internal Double Double {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (8)
235internal static Double GetDouble( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData ) { 244return (Double) result; 485Double temp = GetDouble_Unchecked( sink, getters, ordinal ); 1422internal static void SetDouble( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, Double value ) { 1601case ExtendedClrTypeCode.Double: SetDouble_Unchecked( sink, setters, ordinal, (Double) value ); break; 3098private static Double GetDouble_Unchecked( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal ) { 3101Double result = getters.GetDouble( sink, ordinal ); 3347private static void SetDouble_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, Double value ) {
fx\src\data\System\Data\ColumnTypeConverter.cs (1)
31typeof(Double),
fx\src\data\System\Data\Common\BigIntegerStorage.cs (2)
85else if (type == typeof(Double)) { return checked((Double)value); }
fx\src\data\System\Data\Common\DataStorage.cs (1)
85typeof(Double),
fx\src\data\System\Data\Common\DoubleStorage.cs (26)
18private const Double defaultValue = 0.0d; 20private Double[] values; 23: base(column, typeof(Double), defaultValue, StorageType.Double) { 31Double sum = defaultValue; 44Double meanSum = (Double)defaultValue; 49checked { meanSum += (Double)values[record];} 54Double mean; 55checked {mean = (Double)(meanSum / meanCount);} 97Double min = Double.MaxValue; 111Double max = Double.MinValue; 136throw ExprException.Overflow(typeof(Double)); 142Double valueNo1 = values[recordNo1]; 143Double valueNo2 = values[recordNo2]; 164Double valueNo1 = values[recordNo]; 168return valueNo1.CompareTo((Double)value); 189Double value = values[record]; 209Double[] newValues = new Double[capacity]; 222return XmlConvert.ToString((Double) value); 226return new Double[recordCount]; 230Double[] typedStore = (Double[]) store; 236values = (Double[]) store;
fx\src\data\System\Data\Common\ObjectStorage.cs (2)
244else if (valType == typeof(Double)){ 245values[recordNo] = BitConverter.GetBytes((Double)value);
fx\src\data\System\Data\Common\SingleStorage.cs (3)
44Double meanSum = (Double)defaultValue; 49checked { meanSum += (Double)values[record];}
fx\src\data\System\Data\Common\SQLConvert.cs (2)
518return ((IConvertible)(Double)value).ToString(formatProvider); 765return XmlConvert.ToString((Double) value);
fx\src\data\System\Data\DataTableReader.cs (1)
438override public Double GetDouble (int ordinal) {
fx\src\data\System\Data\Filter\BinaryNode.cs (1)
604Double b = Convert.ToDouble(vRight, FormatProvider);
fx\src\data\System\Data\Filter\ConstNode.cs (2)
115if (Double.TryParse(sval, NumberStyles.Float| NumberStyles.AllowThousands, NumberFormatInfo.InvariantInfo, out r8)) { 174if (Double.TryParse(sval, NumberStyles.Float| NumberStyles.AllowThousands, NumberFormatInfo.InvariantInfo, out r8)) {
fx\src\data\System\Data\Filter\FunctionNode.cs (1)
441return SqlConvert.ChangeType2((double) SqlConvert.ChangeType2(argumentValues[0], StorageType.Double, typeof(Double), FormatProvider), mytype, type, FormatProvider);
fx\src\data\System\Data\Filter\UnaryNode.cs (1)
83value = -(Double) vl;
fx\src\data\System\Data\Odbc\Odbc32.cs (1)
785static private readonly TypeMap _Double = new TypeMap(OdbcType.Double, DbType.Double, typeof(Double), ODBC32.SQL_TYPE.DOUBLE, ODBC32.SQL_C.DOUBLE, ODBC32.SQL_C.DOUBLE, 8, 15, false);
fx\src\data\System\Data\Odbc\OdbcUtils.cs (1)
244WriteDouble(offset, (Double)value);
fx\src\data\System\Data\OleDb\ColumnBinding.cs (7)
423Value_R8((Double) value); 991private Double Value_R8() { 997private void Value_R8(Double value) { 1387internal Double ValueDouble() { 1388Double value; 1396value = (Double) ValueVariant(); 1403throw CheckTypeValueStatusValue(typeof(Double));
fx\src\data\System\Data\OleDb\OLEDB_Enum.cs (1)
183static private readonly NativeDBType D_Double = new NativeDBType( 15, 8, true, false, OleDbType.Double, NativeDBType.R8, S_R8, typeof(System.Double), NativeDBType.R8, DbType.Double ); // 24 - double
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (1)
913override public Double GetDouble(int ordinal) {
fx\src\data\System\Data\OleDb\PropertyInfoSet.cs (1)
148case VarEnum.VT_R8: return typeof(System.Double);
fx\src\data\System\Data\ProviderBase\DbBuffer.cs (2)
190internal Double ReadDouble(int offset) { 427internal void WriteDouble(int offset, Double value) {
fx\src\data\System\Data\Sql\SqlMetaData.cs (1)
1054case TypeCode.Double: value = this.Adjust((Double)value); break;
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (4)
90[FieldOffset(0)] internal Double _double; 217internal Double Double { 224return (Double)this.Value; // anything else we haven't thought of goes through boxing. 766case SqlBuffer.StorageType.Double: return typeof(Double);
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
265public override Double GetDouble(int ordinal) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (1)
710(15, 255, 8, true, false, false, TdsEnums.SQLFLT8, TdsEnums.SQLFLTN, MetaTypeName.FLOAT, typeof(System.Double), typeof(SqlDouble), SqlDbType.Float, DbType.Double, 0);
fx\src\data\System\Data\SqlClient\TdsParser.cs (6)
1715if (Double.IsInfinity(v) || Double.IsNaN(v)) { 5858WriteDouble((Double)value, stateObj); 6004WriteDouble((Double)value, stateObj); 10523WriteDouble((Double)value, stateObj); 10760return SerializeDouble((Double)value);
fx\src\data\System\Data\SqlClient\TdsRecordBufferSetter.cs (1)
155public override void SetDouble(SmiEventSink sink, int ordinal, Double value) {
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (1)
449internal void SetDouble(Double value) {
fx\src\data\System\Data\SQLTypes\SQLDouble.cs (9)
64if (Double.IsInfinity(value) || Double.IsNaN(value)) 123return new SqlDouble(Double.Parse(s, CultureInfo.InvariantCulture)); 148if (Double.IsInfinity(value)) 163if (Double.IsInfinity(value)) 178if (Double.IsInfinity(value)) 196if (Double.IsInfinity(value)) 531public static readonly SqlDouble MinValue = new SqlDouble(Double.MinValue); 535public static readonly SqlDouble MaxValue = new SqlDouble(Double.MaxValue);
fx\src\data\System\Data\XDRSchema.cs (2)
228new NameType("float" , typeof(Double) ), /* XDR */ 242new NameType("r8" , typeof(Double) ), /* XDR */
System.Data.Entity (186)
System\Data\Common\EntitySql\AST\Literal.cs (4)
322Double value; 323if (!Double.TryParse(numberPart, NumberStyles.Float, CultureInfo.InvariantCulture, out value)) 348Double value; 349if (!Double.TryParse(numericString, NumberStyles.Float, CultureInfo.InvariantCulture, out value))
System\Data\EntityModel\SchemaObjectModel\ScalarType.cs (2)
190Double temp; 191if (!Double.TryParse(text, System.Globalization.NumberStyles.Float, System.Globalization.CultureInfo.InvariantCulture, out temp))
System\Data\EntityModel\SchemaObjectModel\SchemaManager.cs (2)
165var currentSchemaVersion = schema.SchemaVersion; 268version = default(Double);
System\Data\Mapping\Update\Internal\Propagator.ExtentPlaceholderCreator.cs (1)
63typeDefaultMap[PrimitiveTypeKind.Double] = default(Double);
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (1)
213primitiveTypes[(int)PrimitiveTypeKind.Double] = CreatePrimitiveType(typeof(Double), PrimitiveTypeKind.Double);
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (1)
162InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.Double], PrimitiveTypeKind.Double, EdmConstants.Double, typeof(Double));
System\Data\Metadata\EdmItemCollection.cs (2)
178private Double _edmVersion = XmlConstants.UndefinedVersion; 199public Double EdmVersion
System\Data\Metadata\StoreItemCollection.cs (1)
258public Double StoreSchemaVersion
System\Data\Objects\EntityFunctions.cs (93)
35public static System.Double? StandardDeviation(IEnumerable<System.Decimal> collection) 40return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 49public static System.Double? StandardDeviation(IEnumerable<System.Decimal?> collection) 54return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 63public static System.Double? StandardDeviation(IEnumerable<System.Double> collection) 65ObjectQuery<System.Double> objectQuerySource = collection as ObjectQuery<System.Double>; 68return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 77public static System.Double? StandardDeviation(IEnumerable<System.Double?> collection) 79ObjectQuery<System.Double?> objectQuerySource = collection as ObjectQuery<System.Double?>; 82return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 91public static System.Double? StandardDeviation(IEnumerable<System.Int32> collection) 96return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 105public static System.Double? StandardDeviation(IEnumerable<System.Int32?> collection) 110return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 119public static System.Double? StandardDeviation(IEnumerable<System.Int64> collection) 124return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 133public static System.Double? StandardDeviation(IEnumerable<System.Int64?> collection) 138return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 147public static System.Double? StandardDeviationP(IEnumerable<System.Decimal> collection) 152return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 161public static System.Double? StandardDeviationP(IEnumerable<System.Decimal?> collection) 166return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 175public static System.Double? StandardDeviationP(IEnumerable<System.Double> collection) 177ObjectQuery<System.Double> objectQuerySource = collection as ObjectQuery<System.Double>; 180return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 189public static System.Double? StandardDeviationP(IEnumerable<System.Double?> collection) 191ObjectQuery<System.Double?> objectQuerySource = collection as ObjectQuery<System.Double?>; 194return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 203public static System.Double? StandardDeviationP(IEnumerable<System.Int32> collection) 208return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 217public static System.Double? StandardDeviationP(IEnumerable<System.Int32?> collection) 222return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 231public static System.Double? StandardDeviationP(IEnumerable<System.Int64> collection) 236return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 245public static System.Double? StandardDeviationP(IEnumerable<System.Int64?> collection) 250return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 259public static System.Double? Var(IEnumerable<System.Decimal> collection) 264return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 273public static System.Double? Var(IEnumerable<System.Decimal?> collection) 278return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 287public static System.Double? Var(IEnumerable<System.Double> collection) 289ObjectQuery<System.Double> objectQuerySource = collection as ObjectQuery<System.Double>; 292return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 301public static System.Double? Var(IEnumerable<System.Double?> collection) 303ObjectQuery<System.Double?> objectQuerySource = collection as ObjectQuery<System.Double?>; 306return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 315public static System.Double? Var(IEnumerable<System.Int32> collection) 320return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 329public static System.Double? Var(IEnumerable<System.Int32?> collection) 334return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 343public static System.Double? Var(IEnumerable<System.Int64> collection) 348return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 357public static System.Double? Var(IEnumerable<System.Int64?> collection) 362return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 371public static System.Double? VarP(IEnumerable<System.Decimal> collection) 376return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 385public static System.Double? VarP(IEnumerable<System.Decimal?> collection) 390return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 399public static System.Double? VarP(IEnumerable<System.Double> collection) 401ObjectQuery<System.Double> objectQuerySource = collection as ObjectQuery<System.Double>; 404return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 413public static System.Double? VarP(IEnumerable<System.Double?> collection) 415ObjectQuery<System.Double?> objectQuerySource = collection as ObjectQuery<System.Double?>; 418return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 427public static System.Double? VarP(IEnumerable<System.Int32> collection) 432return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 441public static System.Double? VarP(IEnumerable<System.Int32?> collection) 446return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 455public static System.Double? VarP(IEnumerable<System.Int64> collection) 460return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 469public static System.Double? VarP(IEnumerable<System.Int64?> collection) 474return ((IQueryable)objectQuerySource).Provider.Execute<System.Double?>(Expression.Call((MethodInfo)MethodInfo.GetCurrentMethod(),Expression.Constant(collection))); 540public static System.DateTime? CreateDateTime(System.Int32? year, System.Int32? month, System.Int32? day, System.Int32? hour, System.Int32? minute, System.Double? second) 549public static System.DateTimeOffset? CreateDateTimeOffset(System.Int32? year, System.Int32? month, System.Int32? day, System.Int32? hour, System.Int32? minute, System.Double? second, System.Int32? timeZoneOffset) 558public static System.TimeSpan? CreateTime(System.Int32? hour, System.Int32? minute, System.Double? second) 999public static System.Double? Truncate(System.Double? value, System.Int32? digits)
System\Data\Objects\ObjectStateEntryBaseUpdatableDataRecord.cs (1)
439public void SetDouble(int ordinal, Double value)
System\Data\Objects\ObjectStateEntryDbDataRecord.cs (1)
184return (Double)GetValue(ordinal);
System\Data\Objects\SqlClient\SqlFunctions.cs (63)
211public static System.String StringConvert(System.Double? number) 229public static System.String StringConvert(System.Double? number, System.Int32? length) 247public static System.String StringConvert(System.Double? number, System.Int32? length, System.Int32? decimalArg) 284public static System.Double? Acos(System.Double? arg1) 293public static System.Double? Acos(System.Decimal? arg1) 302public static System.Double? Asin(System.Double? arg) 311public static System.Double? Asin(System.Decimal? arg) 320public static System.Double? Atan(System.Double? arg) 329public static System.Double? Atan(System.Decimal? arg) 338public static System.Double? Atan2(System.Double? arg1, System.Double? arg2) 347public static System.Double? Atan2(System.Decimal? arg1, System.Decimal? arg2) 356public static System.Double? Cos(System.Double? arg) 365public static System.Double? Cos(System.Decimal? arg) 374public static System.Double? Cot(System.Double? arg) 383public static System.Double? Cot(System.Decimal? arg) 419public static System.Double? Degrees(System.Double? arg1) 428public static System.Double? Exp(System.Double? arg) 437public static System.Double? Exp(System.Decimal? arg) 446public static System.Double? Log(System.Double? arg) 455public static System.Double? Log(System.Decimal? arg) 464public static System.Double? Log10(System.Double? arg) 473public static System.Double? Log10(System.Decimal? arg) 482public static System.Double? Pi() 518public static System.Double? Radians(System.Double? arg) 527public static System.Double? Rand() 536public static System.Double? Rand(System.Int32? seed) 572public static System.Double? Sign(System.Double? arg) 581public static System.Double? Sin(System.Decimal? arg) 590public static System.Double? Sin(System.Double? arg) 599public static System.Double? SquareRoot(System.Double? arg) 608public static System.Double? SquareRoot(System.Decimal? arg) 617public static System.Double? Square(System.Double? arg1) 626public static System.Double? Square(System.Decimal? arg1) 635public static System.Double? Tan(System.Double? arg) 644public static System.Double? Tan(System.Decimal? arg) 653public static System.DateTime? DateAdd(System.String datePartArg, System.Double? number, System.DateTime? date) 662public static System.TimeSpan? DateAdd(System.String datePartArg, System.Double? number, System.TimeSpan? time) 671public static System.DateTimeOffset? DateAdd(System.String datePartArg, System.Double? number, System.DateTimeOffset? dateTimeOffsetArg) 680public static System.DateTime? DateAdd(System.String datePartArg, System.Double? number, System.String date) 932public static System.Int32? DataLength(System.Double? arg) 1013public static System.Int32? Checksum(System.Double? arg1) 1094public static System.Int32? Checksum(System.Double? arg1, System.Double? arg2) 1175public static System.Int32? Checksum(System.Double? arg1, System.Double? arg2, System.Double? arg3)
System\Data\Objects\SqlClient\SqlSpatialFunctions.cs (11)
35public static System.Data.Spatial.DbGeography PointGeography(System.Double? latitude, System.Double? longitude, System.Int32? spatialReferenceId) 53public static System.Data.Spatial.DbGeography BufferWithTolerance(System.Data.Spatial.DbGeography geographyValue, System.Double? distance, System.Double? tolerance, System.Boolean? relative) 62public static System.Double? EnvelopeAngle(System.Data.Spatial.DbGeography geographyValue) 108public static System.Data.Spatial.DbGeography Reduce(System.Data.Spatial.DbGeography geographyValue, System.Double? tolerance) 128public static System.Data.Spatial.DbGeometry PointGeometry(System.Double? xCoordinate, System.Double? yCoordinate, System.Int32? spatialReferenceId) 146public static System.Data.Spatial.DbGeometry BufferWithTolerance(System.Data.Spatial.DbGeometry geometryValue, System.Double? distance, System.Double? tolerance, System.Boolean? relative) 182public static System.Data.Spatial.DbGeometry Reduce(System.Data.Spatial.DbGeometry geometryValue, System.Double? tolerance)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (3)
980double doubleValue = (Double)e.Value; 1096throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_TypedPositiveInfinityNotSupported(Enum.GetName(typeof(PrimitiveTypeKind), PrimitiveTypeKind.Double), typeof(Double).Name)); 1100throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_TypedNegativeInfinityNotSupported(Enum.GetName(typeof(PrimitiveTypeKind), PrimitiveTypeKind.Double), typeof(Double).Name));
System.Data.Services (17)
System\Data\Services\Parsing\WebConvert.cs (5)
179if (!Double.IsInfinity(d) && !Double.IsNaN(d)) 445else if (typeof(Double) == targetType) 538else if (typeof(Double) == targetType) 643else if (typeof(Double) == valueType)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
301Double currentVersion = ((EdmItemCollection)this.ObjectContext.MetadataWorkspace.GetItemCollection(DataSpace.CSpace)).EdmVersion;
System\Data\Services\Serializers\JsonDeserializer.cs (5)
130else if (propertyType == typeof(Double)) 150else if (value is Double) 152Double doubleValue = (Double)value; 157else if (propertyType != typeof(Double) && !provider.IsV1Provider)
System\Data\Services\Serializers\JsonReader.cs (2)
344Double doubleValue; 353else if (Double.TryParse(s, NumberStyles.Float, NumberFormatInfo.InvariantInfo, out doubleValue))
System\Data\Services\Serializers\JsonSerializer.cs (2)
345else if (typeof(Double) == value.GetType()) 347this.writer.WriteValue((Double)value);
System\Data\Services\WebUtil.cs (2)
78new KeyValuePair<Type, string>(typeof(Double), XmlConstants.EdmDoubleTypeName), 79new KeyValuePair<Type, string>(typeof(Double?), XmlConstants.EdmDoubleTypeName),
System.Data.Services.Client (4)
parent\Server\System\Data\Services\Parsing\WebConvert.cs (1)
643else if (typeof(Double) == valueType)
System\Data\Services\Client\ClientConvert.cs (3)
323return XmlConvert.ToString((Double)propertyValue); 471types[(int)StorageType.Double] = typeof(Double); 504named.Add(XmlConstants.EdmDoubleTypeName, typeof(Double));
System.Data.SqlXml (28)
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (2)
4162if (Double.IsNaN((double) litLeft) || Double.IsNaN((double) litRight))
System\Xml\Xsl\QIL\QilXmlReader.cs (1)
126nd = f.LiteralDouble(Double.Parse(ReadText(), CultureInfo.InvariantCulture));
System\Xml\Xsl\Runtime\XmlSortKey.cs (9)
273if (Double.IsNaN(value)) { 281this.dblVal = (collation.EmptyGreatest != collation.DescendingOrder) ? Double.PositiveInfinity : Double.NegativeInfinity; 306Debug.Assert(this.dblVal == Double.NegativeInfinity || this.dblVal == Double.PositiveInfinity); 307return (this.dblVal == Double.NegativeInfinity) ? -1 : 1; 311Debug.Assert(that.dblVal == Double.NegativeInfinity || that.dblVal == Double.PositiveInfinity); 312return (that.dblVal == Double.NegativeInfinity) ? 1 : -1;
System\Xml\Xsl\Runtime\XsltConvert.cs (1)
130return Double.NaN;
System\Xml\Xsl\Runtime\XsltFunctions.cs (3)
66Debug.Assert(value.Length < startIndex || Double.IsNaN(startIndex)); 87Debug.Assert(endIndex <= startIndex || Double.IsNaN(endIndex)); 267return Double.NaN;
System\Xml\Xsl\XPathConvert.cs (7)
521return Double.PositiveInfinity; 2239dbl = Double.PositiveInfinity; 2295Debug.Assert(Double.IsNaN(dblLowPrec) || dblLowPrec == dbl); 2537if (Double.IsNaN(dbl)) { 2541Debug.Assert(Double.IsInfinity(dbl)); 2688return Double.NaN; 2740return Double.NaN;
System\Xml\Xsl\XsltOld\Processor.cs (1)
209parameter is Double ||
System\Xml\Xsl\XsltOld\TemplateAction.cs (2)
93Debug.Assert(Double.IsNaN(this.priority)); 118if (!Double.IsNaN(this.priority) || this.matchKey == Compiler.InvalidQueryKey) {
System\Xml\Xsl\XsltOld\Templatemanager.cs (2)
29Debug.Assert(! Double.IsNaN(tx.Priority)); 30Debug.Assert(! Double.IsNaN(ty.Priority));
System.IdentityModel (1)
System\IdentityModel\IdentityModelWrappedXmlDictionaryReader.cs (1)
385public override Double ReadContentAsDouble()
System.Management (16)
Instrumentation\SchemaMapping.cs (2)
411 else if(t2 == typeof(UInt64) || t2 == typeof(Int64) || t2 == typeof(Double)) 534 else if(t2 == typeof(Double))
managementquery.cs (2)
2971 s = s + " within " + withinInterval.TotalSeconds.ToString((IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Double))); 2980 s = s + " group within " + groupWithinInterval.TotalSeconds.ToString((IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Double)));
property.cs (7)
475 if (val is Double[]) 479 wmiValue = new Double [length]; 481 ((Double[])(wmiValue))[i] = Convert.ToDouble(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.Double))); 575 wmiValue = Convert.ToDouble(val,(IFormatProvider)culInfo.GetFormat(typeof(System.Double))); 718 else if (elementType == typeof(System.Double)) 820 else if (valueType == typeof(System.Double))
qualifier.cs (5)
107 if ((qualVal is Int32[]) || (qualVal is Double[]) || (qualVal is String[]) || (qualVal is Boolean[])) 124 else if (elementType == typeof(Double)) 126 wmiValue = new Double [length]; 128 ((Double[])(wmiValue))[i] = Convert.ToDouble(valArray.GetValue(i),(IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Double)));
System.Messaging (2)
System\Messaging\ActiveXMessageFormatter.cs (2)
330else if (obj is Double) 333byte[] bytes = BitConverter.GetBytes((Double)obj);
System.Numerics (45)
System\Numerics\BigInteger.cs (17)
486public BigInteger(Double value) 488if (Double.IsInfinity(value)) 490if (Double.IsNaN(value)) 893public static Double Log(BigInteger value) 899public static Double Log(BigInteger value, Double baseValue) 902return Double.NaN; 903if (baseValue == Double.PositiveInfinity) 904return value.IsOne ? 0.0D : Double.NaN; 906return Double.NaN; 910Double c = 0, d = 0.5D; 911const Double log2 = 0.69314718055994529D; 933public static Double Log10(BigInteger value) 1181public static explicit operator BigInteger(Double value) 1299return (Single)((Double)value); 1302public static explicit operator Double(BigInteger value) 1731private void SetBitsFromDouble(Double value)
System\Numerics\Complex.cs (28)
34private Double m_real; 35private Double m_imaginary; 39private const Double LOG_10_INV = 0.43429448190325; 44public Double Real { 50public Double Imaginary { 56public Double Magnitude { 62public Double Phase { 76public Complex(Double real, Double imaginary) /* Constructor to create a complex number with rectangular co-ordinates */ 82public static Complex FromPolarCoordinates(Double magnitude, Double phase) /* Factory method to take polar inputs and create a Complex object */ 126Double result_Realpart = (left.m_real * right.m_real) - (left.m_imaginary * right.m_imaginary); 127Double result_Imaginarypart = (left.m_imaginary * right.m_real) + (left.m_real * right.m_imaginary); 150public static Double Abs(Complex value) { 152if(Double.IsInfinity(value.m_real) || Double.IsInfinity(value.m_imaginary)) { 245public static implicit operator Complex(Double value) { 249return (new Complex((Double)value, 0.0)); 252return (new Complex((Double)value, 0.0)); 346public static Complex Log(Complex value, Double baseValue) /* Log of the complex number to a the base of a double */ 354return (Scale(temp_log, (Double)LOG_10_INV)); 359Double temp_factor = Math.Exp(value.m_real); 360Double result_re = temp_factor * Math.Cos(value.m_imaginary); 361Double result_im = temp_factor * Math.Sin(value.m_imaginary); 396public static Complex Pow(Complex value, Double power) // A complex number raised to a real number 405private static Complex Scale(Complex value, Double factor) { 407Double result_re = factor * value.m_real; 408Double result_im = factor * value.m_imaginary;
System.Runtime.Remoting (1)
metadata\sudscommon.cs (1)
79internal static Type typeofDouble = typeof(Double);
System.Runtime.Serialization (4)
System\Runtime\Serialization\DataContract.cs (1)
758type = typeof(Double);
System\Xml\ValueHandle.cs (1)
347public Double ToDouble()
System\Xml\XmlBaseReader.cs (1)
1706public override Double ReadContentAsDouble()
System\Xml\XmlDictionaryReader.cs (1)
1705public override Double ReadContentAsDouble()
System.ServiceModel (3)
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (1)
806value = new Double[0];
System\ServiceModel\MsmqIntegration\ActiveXSerializer.cs (2)
321else if (obj is Double) 323byte[] bytes = BitConverter.GetBytes((Double)obj);
System.ServiceModel.Internals (10)
System\Runtime\TypeHelper.cs (10)
336result = (T)(object)(Double)sbyteSource; 371result = (T)(object)(Double)byteSource; 394result = (T)(object)(Double)int16Source; 423result = (T)(object)(Double)uint16Source; 443result = (T)(object)(Double)int32Source; 469result = (T)(object)(Double)uint32Source; 486result = (T)(object)(Double)int64Source; 503result = (T)(object)(Double)uint64Source; 535result = (T)(object)(Double)charSource; 547result = (T)(object)(Double)(Single)source;
System.ServiceModel.Web (2)
System\ServiceModel\Dispatcher\QueryStringConverter.cs (2)
39this.defaultSupportedQueryStringTypes.Add(typeof(Double), null); 105return parameter == null ? default(Double) : XmlConvert.ToDouble(parameter);
System.Web (11)
httpserverutility.cs (1)
1548return Double.TryParse(value, flags, CultureInfo.InvariantCulture, out doubleValue);
OutputCacheModule.cs (1)
446if (Double.TryParse(s, NumberStyles.Float & ~NumberStyles.AllowLeadingSign & ~NumberStyles.AllowExponent, CultureInfo.InvariantCulture, out d)) {
Profile\HttpProfileBase.cs (1)
577return typeof(System.Double);
State\SessionStateItemCollection.cs (1)
173t=typeof(Double);
UI\ObjectConverter.cs (3)
65else if (typeof(Double).IsAssignableFrom(toType)) { 113else if (typeof(Double).IsAssignableFrom(fromType)) { 114return ((Double)value).ToString(formatString, CultureInfo.InvariantCulture);
UI\WebControls\basecomparevalidator.cs (1)
220value = Double.Parse(cleanInput, CultureInfo.InvariantCulture);
UI\WebParts\AppearanceEditorPart.cs (2)
103if (Double.TryParse(_height.Value, NumberStyles.Float | NumberStyles.AllowThousands, 135if (Double.TryParse(_width.Value, NumberStyles.Float| NumberStyles.AllowThousands,
Util\altserialization.cs (1)
88else if (value is Double) {
System.Web.DataVisualization (136)
Common\ChartTypes\BarChart.cs (5)
1247 previousPoint = Double.NaN; 1259 nextPoint = Double.NaN; 1263 if( Double.IsNaN( previousPoint ) ) 1266 if( Double.IsNaN( nextPoint ) ) 1277 if( Double.IsNaN( nextPoint ) )
Common\ChartTypes\BoxPlotChart.cs (1)
1646 double[] requiredPercentile = new Double[] { 10.0, 90.0, 25.0, 75.0, 50.0 };
Common\ChartTypes\PointChart.cs (5)
1581 previousPoint = Double.NaN; 1593 nextPoint = Double.NaN; 1597 if( Double.IsNaN( previousPoint ) ) 1600 if( Double.IsNaN( nextPoint ) ) 1611 if( Double.IsNaN( nextPoint ) )
Common\ChartTypes\RadarChart.cs (5)
1477 previousPoint = Double.NaN; 1489 nextPoint = Double.NaN; 1493 if( Double.IsNaN( previousPoint ) ) 1496 if( Double.IsNaN( nextPoint ) ) 1507 if( Double.IsNaN( nextPoint ) )
Common\Converters\AxisConverters.cs (15)
262 values.Add(Double.NaN); 263 values.Add(Double.MinValue); 264 values.Add(Double.MaxValue); 282 if(Double.IsNaN(doubleValue)) 286 else if(doubleValue == Double.MinValue) 290 else if(doubleValue == Double.MaxValue) 315 return Double.NaN; 319 return Double.MinValue; 323 return Double.MaxValue; 476 values.Add(Double.NaN); 494 if(Double.IsNaN(doubleValue)) 515 return Double.NaN; 614 values.Add(Double.NaN); 634 if(Double.IsNaN(doubleValue)) 667 return Double.NaN;
Common\DataManager\DataManager.cs (24)
316 double returnValue = Double.MinValue; 344 double returnValue = Double.MinValue; 379 double returnValue = Double.MinValue; 414 double returnValue = Double.MaxValue; 448 double returnValue = Double.MinValue; 478 double returnValue = Double.MinValue; 497 max = Double.MinValue; 498 min = Double.MaxValue; 518 max = Double.MinValue; 519 min = Double.MaxValue; 548 max = Double.MinValue; 549 min = Double.MaxValue; 581 max = Double.MinValue; 582 min = Double.MaxValue; 660 double maxValue = Double.MinValue; 682maxValue = Double.MinValue; 734 double returnValue = Double.MaxValue; 762 double returnValue = Double.MaxValue; 796 double returnValue = Double.MaxValue; 826 double returnValue = Double.MaxValue; 845 double returnValue = Double.MaxValue; 894 double returnValue = Double.MaxValue; 895 double minValue = Double.MaxValue; 901 minValue = Double.MaxValue;
Common\DataManager\DataPoint.cs (7)
1518else if (columnDataType == typeof(Double)) 2038 if(value is Double) 2291 else if (yValue[i] is Double) 2292 yDate = DateTime.FromOADate((Double)yValue[i]); 2312 if (yValue[i] is Double) 2313 yTime = DateTime.FromOADate((Double)yValue[i]); 2370 double[] newArray = new Double[newSize];
Common\DataManager\DataSeries.cs (1)
924 if(type == typeof(Double) ||
Common\Formulas\Oscillator.cs (1)
149 outputValues[1][expIndex] = Double.NaN;
Common\General\Axis.cs (3)
4175if (Double.IsNaN(this.minimum) || Double.IsNaN(this.maximum)) 6375if (Double.IsNaN(axisOpposite.crossing) || ignoreCrossing)
Common\General\AxisScale.cs (34)
166 internal double maximum = Double.NaN; 167 internal double crossing = Double.NaN; 168 internal double minimum = Double.NaN; 171 internal double tempMaximum = Double.NaN; 172 internal double tempMinimum = Double.NaN; 173 internal double tempCrossing = Double.NaN; 177 internal double tempMajorGridInterval = Double.NaN; 179 internal double tempMajorTickMarkInterval = Double.NaN; 181 internal double tempLabelInterval = Double.NaN; 233 internal double interval3DCorrection = Double.NaN; 259private Stack<Double> _intervalsStore = new Stack<Double>(); 536 DefaultValue(Double.NaN), 549if (_isLogarithmic && logarithmicConvertedToLinear && !Double.IsNaN(maximum)) 557 if( Double.IsNaN(value) ) 560 maximum = Double.NaN; 591 DefaultValue(Double.NaN), 604if (_isLogarithmic && logarithmicConvertedToLinear && !Double.IsNaN(maximum)) 612 if( Double.IsNaN(value) ) 615 minimum = Double.NaN; 644 DefaultValue(Double.NaN), 1174 this.labelStyle.intervalOffset = Double.IsNaN(this.labelStyle.intervalOffset) ? offset : this.labelStyle.intervalOffset + offset; 1175 this.majorGrid.intervalOffset = Double.IsNaN(this.majorGrid.intervalOffset) ? offset : this.majorGrid.intervalOffset + offset; 1176 this.majorTickMark.intervalOffset = Double.IsNaN(this.majorTickMark.intervalOffset) ? offset : this.majorTickMark.intervalOffset + offset; 1177this.minorGrid.intervalOffset = Double.IsNaN(this.minorGrid.intervalOffset) ? offset : this.minorGrid.intervalOffset + offset; 1178this.minorTickMark.intervalOffset = Double.IsNaN(this.minorTickMark.intervalOffset) ? offset : this.minorTickMark.intervalOffset + offset; 1671 if( Double.IsNaN(crossing) ) 1693 else if( crossing == Double.MaxValue ) 1697 else if( crossing == Double.MinValue ) 1920 if(!Double.IsNaN(this.ScaleView.Size)) 1923 if(Double.IsNaN(this.ScaleView.Position)) 1930 if( !Double.IsNaN(_scaleView.Position) && !Double.IsNaN(_scaleView.Size) ) 2089 if (crossingValue <= 0.0 && crossingValue != Double.MinValue )
Common\General\AxisScrollZoom.cs (14)
204 DefaultValue(Double.NaN), 216 return Double.NaN; 259 DefaultValue(Double.NaN), 271 return Double.NaN; 593if (!Double.IsNaN(this.Size)) 596if (Double.IsNaN(this.Position)) 631if (!Double.IsNaN(this.Size)) 634if (Double.IsNaN(this.Position)) 1492 values.Add(Double.NaN); 1510 if(Double.IsNaN(doubleValue)) 1531 return Double.NaN; 1578 values.Add(Double.NaN); 1596 if(Double.IsNaN((double)value)) 1691 return Double.NaN;
Common\General\ChartArea3D.cs (1)
1874if (point.IsEmpty && Double.IsNaN(yValue))
Common\General\ChartAreaAxes.cs (8)
661 if( !Double.IsNaN(axis.ScaleView.Position) && 662 !Double.IsNaN(axis.ScaleView.Size) && 684 ( (axis.AutoMaximum || double.IsNaN( axis.Maximum )) && (autoMaximum == Double.MaxValue || autoMaximum == Double.MinValue)) || 685 ( (axis.AutoMinimum || double.IsNaN( axis.Minimum )) && (autoMinimum == Double.MaxValue || autoMinimum == Double.MinValue )) ) 1743 double oldInterval = Double.MaxValue; 1934 if( oldInterval == Double.MaxValue)
Common\General\CommonElements.cs (1)
289Double result = 0.0;
Common\General\DataManipulator.cs (2)
1023if (Double.IsNaN(point.XValue)) 1042if (Double.IsNaN(point.YValues[yIndex]))
Common\General\FormulaData.cs (4)
548if (Double.IsNaN(outputValues[seriesIndex + 1][pointIndex])) 562if (Double.IsNaN(outputValues[seriesIndex + 1][pointIndex])) 924if (Double.IsNaN(input[seriesIndex][pointIndex])) 939input[seriesIndex][pointIndex] = Double.NaN;
Common\General\GridTickMarks.cs (1)
1771if (!this.majorGridTick && value != 0.0 && !Double.IsNaN(value))
Common\General\Label.cs (4)
1373if (Double.IsNaN(_axis.ViewMinimum) || Double.IsNaN(_axis.ViewMaximum)) 2560DefaultValue(Double.NaN), 2641 DefaultValue(Double.NaN),
System.Web.DynamicData (1)
DynamicData\DataSourceUtil.cs (1)
30typeNameToTypeCode[typeof(Double)] = TypeCode.Double;
System.Web.Entity (2)
System\Data\WebControls\EntityDataSourceUtil.cs (2)
337return typeof(Double); 407return typeof(Double);
System.Web.Extensions (4)
Script\Serialization\JavaScriptObjectDeserializer.cs (2)
260Double d; 261if (Double.TryParse(input, NumberStyles.Float, CultureInfo.InvariantCulture, out d)) {
UI\WebControls\Dynamic.cs (2)
612typeof(Double), 991if (Double.TryParse(text, out d)) value = d;
System.Web.Mobile (1)
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlMobileTextWriter.cs (1)
712public override void WriteLine(Double v) {
System.Windows.Forms (13)
winforms\Managed\System\WinForms\DataGridTable.cs (1)
1476dataType.Equals(typeof(Double)) ||
winforms\Managed\System\WinForms\OpacityConverter.cs (1)
49double val = Double.Parse(text, CultureInfo.CurrentCulture);
winforms\Managed\System\WinForms\ProgressBar.cs (5)
974return Double.NaN; 980return this.OwningProgressBar?.Maximum ?? Double.NaN; 986return this.OwningProgressBar?.Minimum ?? Double.NaN; 992return Double.NaN; 998return this.OwningProgressBar?.Value ?? Double.NaN;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
6131var factor = (double)newDpi / oldDpi;
winforms\Managed\System\WinForms\ToolStrip.cs (5)
2324double minHypotenuse = Double.MaxValue; 2325double minTan = Double.MaxValue; 2326double hypotenuseOfTanWinner = Double.MaxValue; 2327double tanOfHypotenuseWinner = Double.MaxValue; 2395if (minTan == tan && minTan != Double.NaN) {
System.Windows.Forms.DataVisualization (136)
Common\ChartTypes\BarChart.cs (5)
1247 previousPoint = Double.NaN; 1259 nextPoint = Double.NaN; 1263 if( Double.IsNaN( previousPoint ) ) 1266 if( Double.IsNaN( nextPoint ) ) 1277 if( Double.IsNaN( nextPoint ) )
Common\ChartTypes\BoxPlotChart.cs (1)
1646 double[] requiredPercentile = new Double[] { 10.0, 90.0, 25.0, 75.0, 50.0 };
Common\ChartTypes\PointChart.cs (5)
1581 previousPoint = Double.NaN; 1593 nextPoint = Double.NaN; 1597 if( Double.IsNaN( previousPoint ) ) 1600 if( Double.IsNaN( nextPoint ) ) 1611 if( Double.IsNaN( nextPoint ) )
Common\ChartTypes\RadarChart.cs (5)
1477 previousPoint = Double.NaN; 1489 nextPoint = Double.NaN; 1493 if( Double.IsNaN( previousPoint ) ) 1496 if( Double.IsNaN( nextPoint ) ) 1507 if( Double.IsNaN( nextPoint ) )
Common\Converters\AxisConverters.cs (15)
262 values.Add(Double.NaN); 263 values.Add(Double.MinValue); 264 values.Add(Double.MaxValue); 282 if(Double.IsNaN(doubleValue)) 286 else if(doubleValue == Double.MinValue) 290 else if(doubleValue == Double.MaxValue) 315 return Double.NaN; 319 return Double.MinValue; 323 return Double.MaxValue; 476 values.Add(Double.NaN); 494 if(Double.IsNaN(doubleValue)) 515 return Double.NaN; 614 values.Add(Double.NaN); 634 if(Double.IsNaN(doubleValue)) 667 return Double.NaN;
Common\DataManager\DataManager.cs (24)
316 double returnValue = Double.MinValue; 344 double returnValue = Double.MinValue; 379 double returnValue = Double.MinValue; 414 double returnValue = Double.MaxValue; 448 double returnValue = Double.MinValue; 478 double returnValue = Double.MinValue; 497 max = Double.MinValue; 498 min = Double.MaxValue; 518 max = Double.MinValue; 519 min = Double.MaxValue; 548 max = Double.MinValue; 549 min = Double.MaxValue; 581 max = Double.MinValue; 582 min = Double.MaxValue; 660 double maxValue = Double.MinValue; 682maxValue = Double.MinValue; 734 double returnValue = Double.MaxValue; 762 double returnValue = Double.MaxValue; 796 double returnValue = Double.MaxValue; 826 double returnValue = Double.MaxValue; 845 double returnValue = Double.MaxValue; 894 double returnValue = Double.MaxValue; 895 double minValue = Double.MaxValue; 901 minValue = Double.MaxValue;
Common\DataManager\DataPoint.cs (7)
1518else if (columnDataType == typeof(Double)) 2038 if(value is Double) 2291 else if (yValue[i] is Double) 2292 yDate = DateTime.FromOADate((Double)yValue[i]); 2312 if (yValue[i] is Double) 2313 yTime = DateTime.FromOADate((Double)yValue[i]); 2370 double[] newArray = new Double[newSize];
Common\DataManager\DataSeries.cs (1)
924 if(type == typeof(Double) ||
Common\Formulas\Oscillator.cs (1)
149 outputValues[1][expIndex] = Double.NaN;
Common\General\Axis.cs (3)
4175if (Double.IsNaN(this.minimum) || Double.IsNaN(this.maximum)) 6375if (Double.IsNaN(axisOpposite.crossing) || ignoreCrossing)
Common\General\AxisScale.cs (34)
166 internal double maximum = Double.NaN; 167 internal double crossing = Double.NaN; 168 internal double minimum = Double.NaN; 171 internal double tempMaximum = Double.NaN; 172 internal double tempMinimum = Double.NaN; 173 internal double tempCrossing = Double.NaN; 177 internal double tempMajorGridInterval = Double.NaN; 179 internal double tempMajorTickMarkInterval = Double.NaN; 181 internal double tempLabelInterval = Double.NaN; 233 internal double interval3DCorrection = Double.NaN; 259private Stack<Double> _intervalsStore = new Stack<Double>(); 536 DefaultValue(Double.NaN), 549if (_isLogarithmic && logarithmicConvertedToLinear && !Double.IsNaN(maximum)) 557 if( Double.IsNaN(value) ) 560 maximum = Double.NaN; 591 DefaultValue(Double.NaN), 604if (_isLogarithmic && logarithmicConvertedToLinear && !Double.IsNaN(maximum)) 612 if( Double.IsNaN(value) ) 615 minimum = Double.NaN; 644 DefaultValue(Double.NaN), 1174 this.labelStyle.intervalOffset = Double.IsNaN(this.labelStyle.intervalOffset) ? offset : this.labelStyle.intervalOffset + offset; 1175 this.majorGrid.intervalOffset = Double.IsNaN(this.majorGrid.intervalOffset) ? offset : this.majorGrid.intervalOffset + offset; 1176 this.majorTickMark.intervalOffset = Double.IsNaN(this.majorTickMark.intervalOffset) ? offset : this.majorTickMark.intervalOffset + offset; 1177this.minorGrid.intervalOffset = Double.IsNaN(this.minorGrid.intervalOffset) ? offset : this.minorGrid.intervalOffset + offset; 1178this.minorTickMark.intervalOffset = Double.IsNaN(this.minorTickMark.intervalOffset) ? offset : this.minorTickMark.intervalOffset + offset; 1671 if( Double.IsNaN(crossing) ) 1693 else if( crossing == Double.MaxValue ) 1697 else if( crossing == Double.MinValue ) 1920 if(!Double.IsNaN(this.ScaleView.Size)) 1923 if(Double.IsNaN(this.ScaleView.Position)) 1930 if( !Double.IsNaN(_scaleView.Position) && !Double.IsNaN(_scaleView.Size) ) 2089 if (crossingValue <= 0.0 && crossingValue != Double.MinValue )
Common\General\AxisScrollZoom.cs (14)
204 DefaultValue(Double.NaN), 216 return Double.NaN; 259 DefaultValue(Double.NaN), 271 return Double.NaN; 593if (!Double.IsNaN(this.Size)) 596if (Double.IsNaN(this.Position)) 631if (!Double.IsNaN(this.Size)) 634if (Double.IsNaN(this.Position)) 1492 values.Add(Double.NaN); 1510 if(Double.IsNaN(doubleValue)) 1531 return Double.NaN; 1578 values.Add(Double.NaN); 1596 if(Double.IsNaN((double)value)) 1691 return Double.NaN;
Common\General\ChartArea3D.cs (1)
1874if (point.IsEmpty && Double.IsNaN(yValue))
Common\General\ChartAreaAxes.cs (8)
661 if( !Double.IsNaN(axis.ScaleView.Position) && 662 !Double.IsNaN(axis.ScaleView.Size) && 684 ( (axis.AutoMaximum || double.IsNaN( axis.Maximum )) && (autoMaximum == Double.MaxValue || autoMaximum == Double.MinValue)) || 685 ( (axis.AutoMinimum || double.IsNaN( axis.Minimum )) && (autoMinimum == Double.MaxValue || autoMinimum == Double.MinValue )) ) 1743 double oldInterval = Double.MaxValue; 1934 if( oldInterval == Double.MaxValue)
Common\General\CommonElements.cs (1)
289Double result = 0.0;
Common\General\DataManipulator.cs (2)
1023if (Double.IsNaN(point.XValue)) 1042if (Double.IsNaN(point.YValues[yIndex]))
Common\General\FormulaData.cs (4)
548if (Double.IsNaN(outputValues[seriesIndex + 1][pointIndex])) 562if (Double.IsNaN(outputValues[seriesIndex + 1][pointIndex])) 924if (Double.IsNaN(input[seriesIndex][pointIndex])) 939input[seriesIndex][pointIndex] = Double.NaN;
Common\General\GridTickMarks.cs (1)
1771if (!this.majorGridTick && value != 0.0 && !Double.IsNaN(value))
Common\General\Label.cs (4)
1373if (Double.IsNaN(_axis.ViewMinimum) || Double.IsNaN(_axis.ViewMaximum)) 2560DefaultValue(Double.NaN), 2641 DefaultValue(Double.NaN),
System.Xml (27)
System\Xml\BinaryXml\XmlBinaryReader.cs (5)
1097public override Double ReadContentAsDouble() { 1099Double value; 2894map[(int)BinXmlToken.SQL_FLOAT] = typeof(Double); 3805Double v = GetDouble(this.tokDataPos); 3953Double GetDouble(int offset) {
System\Xml\Serialization\PrimitiveXmlSerializers.cs (2)
72WriteElementStringRaw(@"double", @"", System.Xml.XmlConvert.ToString((System.Double)((System.Double)o)));
System\Xml\Serialization\XmlSerializationWriter.cs (1)
3084Writer.Write(((Double)value).ToString("R", NumberFormatInfo.InvariantInfo));
System\Xml\XmlConvert.cs (16)
733public static string ToString(Double value) { 734if (Double.IsNegativeInfinity(value)) return "-INF"; 735if (Double.IsPositiveInfinity(value)) return "INF"; 1071public static Double ToDouble(string s) { 1073if(s == "-INF") return Double.NegativeInfinity; 1074if(s == "INF") return Double.PositiveInfinity; 1075double dVal = Double.Parse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowDecimalPoint|NumberStyles.AllowExponent|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 1086result = Double.NegativeInfinity; 1090result = Double.PositiveInfinity; 1093else if (!Double.TryParse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowDecimalPoint|NumberStyles.AllowExponent, NumberFormatInfo.InvariantInfo, out result)) { 1104internal static Double ToXPathDouble (Object o) { 1110if (Double.TryParse(str, NumberStyles.AllowLeadingSign|NumberStyles.AllowDecimalPoint|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out d)) { 1114return Double.NaN; 1127return Double.NaN; 1146internal static Double XPathRound(Double value) {
System\Xml\XPath\Internal\StringFunctions.cs (3)
145if (Double.IsNaN(num) || str1.Length <= num) { 150if (Double.IsNaN(num1)) { 173private Double StringLength(XPathNodeIterator nodeIterator) {
UIAutomationClient (2)
MS\Internal\Automation\ClickablePoint.cs (2)
109Double size = rect.Width * rect.Height; 140Double size = rect.Width * rect.Height;
UIAutomationClientsideProviders (5)
MS\Internal\AutomationProxies\WindowsIPAddress.cs (2)
443return Double.NaN; 451return Double.NaN;
MS\Internal\AutomationProxies\WindowsProgressbar.cs (2)
143return Double.NaN; 151return Double.NaN;
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
295return Double.NaN;
WindowsBase (17)
Base\System\Windows\Markup\TypeConverterHelper.cs (3)
205else if (typeof(Double).IsAssignableFrom(type)) 289else if (type == typeof(Double)) 389else if (typeof(Double).IsAssignableFrom(type))
Base\System\Windows\Rect.cs (12)
335return Double.NegativeInfinity; 352return Double.NegativeInfinity; 537if ((rect.Width == Double.PositiveInfinity) || (Width == Double.PositiveInfinity)) 539_width = Double.PositiveInfinity; 549if ((rect.Height == Double.PositiveInfinity) || (Height == Double.PositiveInfinity)) 551_height = Double.PositiveInfinity; 795rect._x = Double.PositiveInfinity; 796rect._y = Double.PositiveInfinity; 797rect._width = Double.NegativeInfinity; 798rect._height = Double.NegativeInfinity;
Base\System\Windows\Size.cs (2)
165size._width = Double.NegativeInfinity; 166size._height = Double.NegativeInfinity;