5 instantiations of Single
PresentationCore (4)
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimation.cs (4)
235Single from = new Single(); 236Single to = new Single(); 237Single accumulated = new Single(); 238Single foundation = new Single();
PresentationFramework (1)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8880bamlType.DefaultConstructor = delegate() { return new System.Single(); };
670 references to Single
mscorlib (83)
microsoft\win32\oavariantlib.cs (1)
50typeof(Single),
system\convert.cs (3)
129(RuntimeType)typeof(Single), 1514return Single.Parse(value, CultureInfo.CurrentCulture); 1520return Single.Parse(value, NumberStyles.Float | NumberStyles.AllowThousands, provider);
System\Diagnostics\Eventing\TraceLogging\SimpleTypeInfos.cs (4)
286: TraceLoggingTypeInfo<Single> 296public override void WriteData(TraceLoggingDataCollector collector, ref Single value) 618: TraceLoggingTypeInfo<Single[]> 628public override void WriteData(TraceLoggingDataCollector collector, ref Single[] value)
System\Diagnostics\Eventing\TraceLogging\Statics.cs (2)
645else if (elementType == typeof(Single)) 757else if (dataType == typeof(Single))
system\internal.cs (3)
106NullableHelper<Single>(); 122new List<Single>(); 146SZArrayHelper<Single>(null);
system\io\unmanagedmemoryaccessor.cs (7)
318public Single ReadSingle(Int64 position) { 319int sizeOfType = sizeof(Single); 322Single result; 334result = *((Single*)(pointer)); 816public void Write(Int64 position, Single value) { 817int sizeOfType = sizeof(Single); 830*((Single*)pointer) = value;
system\math.cs (2)
399if (Single.IsNaN(val1)) 481if (Single.IsNaN(val1))
system\number.cs (11)
941internal unsafe static Single ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt) { 956return Single.PositiveInfinity; 959return Single.NegativeInfinity; 962return Single.NaN; 970Single castSingle = (Single)d; 971if (Single.IsInfinity(castSingle)) { 1129internal unsafe static Boolean TryParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt, out Single result) { 1141Single castSingle = (Single)d; 1142if (Single.IsInfinity(castSingle)) {
system\resources\resourcereader.cs (1)
633else if (type == typeof(Single))
system\resources\resourcewriter.cs (2)
553else if (type == typeof(Single)) 651writer.Write((Single) value);
system\Runtime\InteropServices\Variant.cs (2)
87[FieldOffset(0)] internal Single _r4; 542public Single AsR4 {
system\runtime\interopservices\windowsruntime\clripropertyvalueimpl.cs (6)
43new Tuple<Type, PropertyType>(typeof(Single), PropertyType.Single), 120public Single GetSingle() 122return CoerceScalarValue<Single>(PropertyType.Single); 266public Single[] GetSingleArray() 268return CoerceArrayValue<Single>(PropertyType.SingleArray); 471else if (typeof(T) == typeof(Single)) {
system\runtime\interopservices\windowsruntime\ipropertyvalue.cs (2)
55Single GetSingle(); 109Single[] GetSingleArray();
system\runtime\remoting\message.cs (4)
674else if (pt == typeof(Single)) 677ret = Single.PositiveInfinity; 679ret = Single.NegativeInfinity; 681ret = Single.Parse(strValue, CultureInfo.InvariantCulture);
system\runtime\serialization\formatter.cs (1)
155} else if (varType==typeof(Single)) {
system\runtime\serialization\formatters\binary\binaryconverter.cs (3)
310array = new Single[length]; 501internal static Type typeofSingle = typeof(Single); 526internal static Type typeofSingleArray = typeof(Single[]);
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (1)
103internal void WriteSingle(Single value)
system\runtime\serialization\formatters\binary\binaryparser.cs (1)
320internal Single ReadSingle()
system\runtime\serialization\formatters\binary\binaryutilclasses.cs (3)
844Single[] singleA = null; 882singleA = (Single[])array; 925singleA[index] = Single.Parse(value, CultureInfo.InvariantCulture);
system\single.cs (22)
32, IComparable<Single>, IEquatable<Single> 89if (value is Single) { 105public int CompareTo(Single value) { 118public static bool operator ==(Single left, Single right) { 123public static bool operator !=(Single left, Single right) { 128public static bool operator <(Single left, Single right) { 133public static bool operator >(Single left, Single right) { 138public static bool operator <=(Single left, Single right) { 143public static bool operator >=(Single left, Single right) { 148if (!(obj is Single)) { 151float temp = ((Single)obj).m_value; 159public bool Equals(Single obj) 233public static Boolean TryParse(String s, out Single result) { 237public static Boolean TryParse(String s, NumberStyles style, IFormatProvider provider, out Single result) { 242private static Boolean TryParse(String s, NumberStyles style, NumberFormatInfo info, out Single result) {
system\threading\volatile.cs (1)
182var value = location;
system\variant.cs (1)
103typeof(Single),
PresentationBuildTasks (2)
Base\System\Windows\Markup\TypeConverterHelper.cs (1)
209else if (typeof(Single).IsAssignableFrom(type))
Framework\System\Windows\Markup\KnownTypes.cs (1)
5495case KnownElements.Single: t = typeof(Single); break;
PresentationCore (248)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (20)
25return from + ((to - from) * (Single)progress); 133internal static Single InterpolateSingle(Single from, Single to, Double progress) 135return from + (Single)((to - from) * progress); 212internal static Single AddSingle(Single value1, Single value2) 316internal static Single SubtractSingle(Single value1, Single value2) 471internal static Double GetSegmentLengthSingle(Single from, Single to) 514return value * (Single)factor; 581internal static Single ScaleSingle(Single value, Double factor) 583return (Single)((Double)value * factor); 708internal static bool IsValidAnimationValueSingle(Single value) 807internal static Single GetZeroValueSingle(Single baseValue)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\SerializationHelper.cs (2)
277else if (typeof(Single) == type) 281else if (typeof(Single[]) == type)
Core\CSharp\System\Windows\FreezableCollection.cs (1)
46using Float = System.Single;
Core\CSharp\system\windows\generated\TextDecoration.cs (1)
35using Float = System.Single;
Core\CSharp\system\windows\generated\TextDecorationCollection.cs (1)
35using Float = System.Single;
Core\CSharp\System\Windows\Media\Animation\Generated\DiscreteKeyFrames.cs (4)
1268public DiscreteSingleKeyFrame(Single value) 1276public DiscreteSingleKeyFrame(Single value, KeyTime keyTime) 1304protected override Single InterpolateValueCore(Single baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\EasingKeyFrames.cs (5)
1551public EasingSingleKeyFrame(Single value) 1560public EasingSingleKeyFrame(Single value, KeyTime keyTime) 1570public EasingSingleKeyFrame(Single value, KeyTime keyTime, IEasingFunction easingFunction) 1599protected override Single InterpolateValueCore(Single baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\KeyFrames.cs (10)
2352protected SingleKeyFrame(Single value) 2361protected SingleKeyFrame(Single value, KeyTime keyTime) 2404typeof(Single), 2419Value = (Single)value; 2426public Single Value 2430return (Single)GetValue(ValueProperty); 2447public Single InterpolateValue( 2448Single baseValue, 2468protected abstract Single InterpolateValueCore( 2469Single baseValue,
Core\CSharp\System\Windows\Media\Animation\Generated\LinearKeyFrames.cs (4)
975public LinearSingleKeyFrame(Single value) 983public LinearSingleKeyFrame(Single value, KeyTime keyTime) 1009protected override Single InterpolateValueCore(Single baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\ParallelTimeline.cs (1)
43using Float = System.Single;
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimation.cs (32)
45private Single[] _keyValues; 60Type typeofProp = typeof(Single?); 69new PropertyMetadata((Single?)null, propCallback), 76new PropertyMetadata((Single?)null, propCallback), 83new PropertyMetadata((Single?)null, propCallback), 107public SingleAnimation(Single toValue, Duration duration) 119public SingleAnimation(Single toValue, Duration duration, FillBehavior fillBehavior) 132public SingleAnimation(Single fromValue, Single toValue, Duration duration) 145public SingleAnimation(Single fromValue, Single toValue, Duration duration, FillBehavior fillBehavior) 218protected override Single GetCurrentValueCore(Single defaultOriginValue, Single defaultDestinationValue, AnimationClock animationClock) 235Single from = new Single(); 236Single to = new Single(); 237Single accumulated = new Single(); 238Single foundation = new Single(); 352Single accumulator = AnimatedTypeHelpers.SubtractSingle(to, from); 377_keyValues = new Single[2]; 384_keyValues = new Single[2]; 391_keyValues = new Single[1]; 398_keyValues = new Single[1]; 404_keyValues = new Single[1]; 425Single? typedValue = (Single?)value; 445public Single? From 449return (Single?)GetValue(FromProperty); 465public Single? To 469return (Single?)GetValue(ToProperty); 485public Single? By 489return (Single?)GetValue(ByProperty);
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimationBase.cs (9)
103return GetCurrentValue((Single)defaultOriginValue, (Single)defaultDestinationValue, animationClock); 115return typeof(Single); 152public Single GetCurrentValue(Single defaultOriginValue, Single defaultDestinationValue, AnimationClock animationClock) 215protected abstract Single GetCurrentValueCore(Single defaultOriginValue, Single defaultDestinationValue, AnimationClock animationClock);
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (8)
331protected sealed override Single GetCurrentValueCore( 332Single defaultOriginValue, 333Single defaultDestinationValue, 359Single currentIterationValue; 395Single fromValue; 643private Single GetResolvedKeyFrameValue(Int32 resolvedKeyFrameIndex) 954Single prevKeyValue = _keyFrames[index - 1].Value; 958Single currentKeyValue = _keyFrames[index].Value;
Core\CSharp\System\Windows\Media\Animation\Generated\SplineKeyFrames.cs (5)
1647public SplineSingleKeyFrame(Single value) 1656public SplineSingleKeyFrame(Single value, KeyTime keyTime) 1666public SplineSingleKeyFrame(Single value, KeyTime keyTime, KeySpline keySpline) 1700protected override Single InterpolateValueCore(Single baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\Timeline.cs (1)
43using Float = System.Single;
Core\CSharp\System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
43using Float = System.Single;
Core\CSharp\System\Windows\Media\Animation\Generated\TimelineGroup.cs (1)
43using Float = System.Single;
Core\CSharp\System\Windows\Media\Effects\Generated\BevelBitmapEffect.cs (1)
42using Float = System.Single;
Core\CSharp\System\Windows\Media\Effects\Generated\BitmapEffect.cs (1)
42using Float = System.Single;
Core\CSharp\System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
42using Float = System.Single;
Core\CSharp\System\Windows\Media\Effects\Generated\BitmapEffectGroup.cs (1)
42using Float = System.Single;
Core\CSharp\System\Windows\Media\Effects\Generated\BitmapEffectInput.cs (1)
42using Float = System.Single;
Core\CSharp\System\Windows\Media\Effects\Generated\BlurBitmapEffect.cs (1)
42using Float = System.Single;
Core\CSharp\System\Windows\Media\Effects\Generated\BlurEffect.cs (1)
42using Float = System.Single;
Core\CSharp\System\Windows\Media\Effects\Generated\DropShadowBitmapEffect.cs (1)
42using Float = System.Single;
Core\CSharp\System\Windows\Media\Effects\Generated\DropShadowEffect.cs (1)
42using Float = System.Single;
Core\CSharp\System\Windows\Media\Effects\Generated\Effect.cs (1)
42using Float = System.Single;
Core\CSharp\System\Windows\Media\Effects\Generated\EmbossBitmapEffect.cs (1)
42using Float = System.Single;
Core\CSharp\System\Windows\Media\Effects\Generated\ImplicitInputBrush.cs (1)
42using Float = System.Single;
Core\CSharp\System\Windows\Media\Effects\Generated\OuterGlowBitmapEffect.cs (1)
42using Float = System.Single;
Core\CSharp\System\Windows\Media\Effects\Generated\PixelShader.cs (1)
42using Float = System.Single;
Core\CSharp\System\Windows\Media\Effects\Generated\ShaderEffect.cs (1)
42using Float = System.Single;
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (1)
606data.DependencyPropertyFloatValuesSize = (uint)(4 * sizeof(Single) * _floatCount);
Core\CSharp\System\Windows\Media\Generated\ArcSegment.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\BezierSegment.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\BitmapCache.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\BitmapCacheBrush.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\Brush.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\CacheMode.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\CombinedGeometry.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\DashStyle.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\DoubleCollection.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\Drawing.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\DrawingBrush.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\DrawingCollection.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\DrawingGroup.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\DrawingImage.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\EllipseGeometry.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\GeneralTransform.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\GeneralTransformGroup.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\Geometry.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\GeometryCollection.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\GeometryDrawing.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\GeometryGroup.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\GlyphRunDrawing.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\GradientBrush.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\GradientStop.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\GradientStopCollection.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\GuidelineSet.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\ImageBrush.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\ImageDrawing.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\ImageSource.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\Int32Collection.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\LinearGradientBrush.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\LineGeometry.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\LineSegment.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\MatrixTransform.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\MediaTimeline.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\PathFigure.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\PathFigureCollection.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\PathGeometry.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\PathSegment.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\PathSegmentCollection.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\Pen.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\PointCollection.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\PolyBezierSegment.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\PolyLineSegment.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\PolyQuadraticBezierSegment.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\QuadraticBezierSegment.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\RadialGradientBrush.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\RectangleGeometry.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\RotateTransform.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\ScaleTransform.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\SkewTransform.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\SolidColorBrush.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\StreamGeometry.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\TextEffect.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\TextEffectCollection.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\TileBrush.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\Transform.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\TransformCollection.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\TransformGroup.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\TranslateTransform.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\VectorCollection.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\VideoDrawing.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Generated\VisualBrush.cs (1)
44using Float = System.Single;
Core\CSharp\System\Windows\Media\Imaging\Generated\BitmapImage.cs (1)
32using Float = System.Single;
Core\CSharp\System\Windows\Media\Imaging\Generated\ColorConvertedBitmap.cs (1)
32using Float = System.Single;
Core\CSharp\System\Windows\Media\Imaging\Generated\CroppedBitmap.cs (1)
32using Float = System.Single;
Core\CSharp\System\Windows\Media\Imaging\Generated\FormatConvertedBitmap.cs (1)
32using Float = System.Single;
Core\CSharp\System\Windows\Media\Imaging\Generated\TransformedBitmap.cs (1)
32using Float = System.Single;
Core\CSharp\System\windows\Media\MILUtilities.cs (10)
103Debug.Assert(pD3DMatrix[2] == 0.0f || Single.IsNaN(pD3DMatrix[2])); 104Debug.Assert(pD3DMatrix[3] == 0.0f || Single.IsNaN(pD3DMatrix[3])); 112Debug.Assert(pD3DMatrix[6] == 0.0f || Single.IsNaN(pD3DMatrix[6])); 113Debug.Assert(pD3DMatrix[7] == 0.0f || Single.IsNaN(pD3DMatrix[7])); 119Debug.Assert(pD3DMatrix[8] == 0.0f || Single.IsNaN(pD3DMatrix[8])); 120Debug.Assert(pD3DMatrix[9] == 0.0f || Single.IsNaN(pD3DMatrix[9])); 121Debug.Assert(pD3DMatrix[10] == 1.0f || Single.IsNaN(pD3DMatrix[10])); 122Debug.Assert(pD3DMatrix[11] == 0.0f || Single.IsNaN(pD3DMatrix[11])); 130Debug.Assert(pD3DMatrix[14] == 0.0f || Single.IsNaN(pD3DMatrix[14])); 131Debug.Assert(pD3DMatrix[15] == 1.0f || Single.IsNaN(pD3DMatrix[15]));
Core\CSharp\System\Windows\Media3D\Generated\AffineTransform3D.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\AmbientLight.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\AxisAngleRotation3D.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\Camera.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\DiffuseMaterial.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\DirectionalLight.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\EmissiveMaterial.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\GeneralTransform3D.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\GeneralTransform3DGroup.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\Geometry3D.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\GeometryModel3D.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\Light.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\Material.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\MaterialCollection.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\MaterialGroup.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\Matrix3D.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\MatrixCamera.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\MatrixTransform3D.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\MeshGeometry3D.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\Model3D.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\Model3DCollection.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\Model3DGroup.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\OrthographicCamera.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\PerspectiveCamera.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\Point3D.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\Point3DCollection.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\Point4D.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\PointLight.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\PointLightBase.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\ProjectionCamera.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\Quaternion.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\QuaternionRotation3D.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\Rect3D.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\RotateTransform3D.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\Rotation3D.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\ScaleTransform3D.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\Size3D.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\SpecularMaterial.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\SpotLight.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\Transform3D.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\Transform3DGroup.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\TranslateTransform3D.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\Vector3D.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
40using Float = System.Single;
Core\CSharp\System\Windows\Media3D\Quaternion.cs (1)
44using Float = System.Single;
PresentationFramework (5)
src\Framework\MS\Internal\Data\DefaultValueConverter.cs (1)
536typeof(Int32), typeof(Int64), typeof(Single), typeof(Double),
src\Framework\System\Windows\FontSizeConverter.cs (1)
98if (value is System.Int32 || value is System.Single || value is System.Double)
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
651case 559: t = () => typeof(Single); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8878typeof(System.Single),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6103case KnownElements.Single: t = typeof(System.Single); break;
System (11)
compmod\microsoft\csharp\csharpcodeprovider.cs (3)
1243else if (e.Value is Single) { 1244GenerateSingleFloatValue((Single)e.Value); 2005private void GenerateSingleFloatValue(Single s) {
compmod\microsoft\visualbasic\VBCodeProvider.cs (1)
1216protected override void GenerateSingleFloatValue(Single s) {
compmod\system\codedom\compiler\CodeGenerator.cs (3)
1520else if (e.Value is Single) { 1521GenerateSingleFloatValue((Single)e.Value); 1545protected virtual void GenerateSingleFloatValue(Single s) {
compmod\system\componentmodel\SingleConverter.cs (4)
42return typeof(Single); 57return Single.Parse(value, NumberStyles.Float, formatInfo); 65return Single.Parse(value, culture); 72return ((Single)value).ToString("R", formatInfo);
System.Activities (1)
System\Activities\Debugger\DebugInfo.cs (1)
371else if (t == typeof(Single))
System.AddIn (1)
System\Addin\MiniReflection\MiniParameterInfo.cs (1)
101return new TypeInfo(typeof(Single));
System.AddIn.Contract (5)
System\Addin\Contract\RemoteArgument.cs (5)
559public RemoteArgument(System.Single value) 567public RemoteArgument(System.Single value, bool isByRef) 1189public System.Single SingleValue 1197return default(System.Single); 1203return (System.Single)this._value;
System.Core (11)
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
531if (type == typeof(Single)) {
Microsoft\Scripting\Ast\ParameterExpression.cs (1)
72case TypeCode.Single: return new PrimitiveParameterExpression<Single>(name);
Microsoft\Scripting\Compiler\ILGen.cs (2)
657if (typeTo == typeof(Single)) { 1030il.Emit(OpCodes.Ldc_R4, default(Single));
Microsoft\Win32\UnsafeNativeMethods.cs (1)
757public Single Single;
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (3)
1230if (val.Reference == IntPtr.Zero) return new Single[0]; 1231Single[] arSingle = new Single[val.Count];
System\Linq\Enumerable.cs (3)
1601if (x < value || System.Single.IsNaN(x)) value = x; 1617if (value == null || x < value || System.Single.IsNaN((float)x)) value = x; 1848if (value == null || x > value || System.Single.IsNaN((float)value)) value = x;
System.Data (107)
fx\src\data\Microsoft\SqlServer\Server\ITypedGetters.cs (1)
41Single GetFloat( int ordinal );
fx\src\data\Microsoft\SqlServer\Server\ITypedGettersV3.cs (1)
58Single GetSingle( SmiEventSink sink, int ordinal );
fx\src\data\Microsoft\SqlServer\Server\ITypedSetters.cs (1)
36void SetFloat( int ordinal, Single value );
fx\src\data\Microsoft\SqlServer\Server\ITypedSettersV3.cs (1)
67void SetSingle( SmiEventSink sink, int ordinal, Single value );
fx\src\data\Microsoft\SqlServer\Server\MemoryRecordBuffer.cs (2)
90public override Single GetSingle(SmiEventSink sink, int ordinal) { 187public override void SetSingle(SmiEventSink sink, int ordinal, Single value) {
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
105ht.Add( typeof( System.Single ), ExtendedClrTypeCode.Single ); 279if (value.GetType() == typeof( Single ))
fx\src\data\Microsoft\SqlServer\Server\SmiRecordBuffer.cs (2)
192public virtual Single GetFloat( int ordinal ) { 535public virtual void SetFloat( int ordinal, Single value ) {
fx\src\data\Microsoft\SqlServer\Server\SmiRequestExecutor.cs (2)
250public virtual Single GetFloat( int ordinal ) { 593public virtual void SetFloat( int ordinal, Single value ) {
fx\src\data\Microsoft\SqlServer\Server\SmiTypedGetterSetter.cs (2)
151public virtual Single GetSingle(SmiEventSink sink, int ordinal) { 351public virtual void SetSingle(SmiEventSink sink, int ordinal, Single value) {
fx\src\data\Microsoft\SqlServer\Server\SqlRecordBuffer.cs (2)
50[FieldOffset(0)] internal Single _single; 209internal Single Single {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (8)
295internal static Single GetSingle( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData ) { 304return (Single) result; 615Single temp = GetSingle_Unchecked( sink, getters, ordinal ); 1452internal static void SetSingle( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, Single value ) { 1607case ExtendedClrTypeCode.Single: SetSingle_Unchecked( sink, setters, ordinal, (Single) value ); break; 3138private static Single GetSingle_Unchecked( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal ) { 3141Single result = getters.GetSingle( sink, ordinal ); 3372private static void SetSingle_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, Single value ) {
fx\src\data\System\Data\CodeGen\datacache.cs (1)
851col.DataType == typeof(Single) || col.DataType == typeof(double) ||
fx\src\data\System\Data\ColumnTypeConverter.cs (1)
38typeof(Single),
fx\src\data\System\Data\Common\BigIntegerStorage.cs (2)
84else if (type == typeof(Single)) { return checked((Single)value); }
fx\src\data\System\Data\Common\DataStorage.cs (1)
84typeof(Single),
fx\src\data\System\Data\Common\ObjectStorage.cs (2)
241else if (valType == typeof(Single)){ 242values[recordNo] = BitConverter.GetBytes((Single)value);
fx\src\data\System\Data\Common\SingleStorage.cs (23)
18private const Single defaultValue = 0.0f; 20private Single[] values; 23: base(column, typeof(Single), defaultValue, StorageType.Single) { 31Single sum = defaultValue; 54Single mean; 55checked {mean = (Single)(meanSum / meanCount);} 98Single min = Single.MaxValue; 112Single max = Single.MinValue; 137throw ExprException.Overflow(typeof(Single)); 143Single valueNo1 = values[recordNo1]; 144Single valueNo2 = values[recordNo2]; 165Single valueNo1 = values[recordNo]; 169return valueNo1.CompareTo((Single)value); 190Single value = values[record]; 210Single[] newValues = new Single[capacity]; 223return XmlConvert.ToString((Single)value); 227return new Single[recordCount]; 231Single[] typedStore = (Single[]) store; 237values = (Single[]) store;
fx\src\data\System\Data\Common\SQLConvert.cs (4)
156return (Single)value; 220return (Single)value; 516return ((IConvertible)(Single)value).ToString(formatProvider); 763return XmlConvert.ToString((Single) value);
fx\src\data\System\Data\DataSet.cs (2)
3335Single version = 1.0f; // Default is Version 1.0 3342version = Single.Parse(values[0], CultureInfo.InvariantCulture);
fx\src\data\System\Data\DataTableReader.cs (2)
462override public Single GetFloat (int ordinal) { 466return (Single) currentDataRow[ordinal];
fx\src\data\System\Data\Filter\FunctionNode.cs (2)
438return SqlConvert.ChangeType2((Single) SqlConvert.ChangeType2(argumentValues[0], StorageType.Single, typeof(Single), FormatProvider), mytype, type, FormatProvider);
fx\src\data\System\Data\Filter\UnaryNode.cs (1)
80value = -(Single) vl;
fx\src\data\System\Data\Odbc\Odbc32.cs (1)
792static private readonly TypeMap _Real = new TypeMap(OdbcType.Real, DbType.Single, typeof(Single), ODBC32.SQL_TYPE.REAL, ODBC32.SQL_C.REAL, ODBC32.SQL_C.REAL, 4, 7, false);
fx\src\data\System\Data\Odbc\OdbcUtils.cs (1)
236WriteSingle(offset, (Single)value);
fx\src\data\System\Data\OleDb\ColumnBinding.cs (7)
420Value_R4((Single) value); 978private Single Value_R4() { 984private void Value_R4(Single value) { 1366internal Single ValueSingle() { 1367Single value; 1375value = (Single) ValueVariant(); 1382throw CheckTypeValueStatusValue(typeof(Single));
fx\src\data\System\Data\OleDb\OLEDB_Enum.cs (1)
182static private readonly NativeDBType D_Single = new NativeDBType( 7, 4, true, false, OleDbType.Single, NativeDBType.R4, S_R4, typeof(System.Single), NativeDBType.R4, DbType.Single ); // 23 - single
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (1)
929override public Single GetFloat(int ordinal) {
fx\src\data\System\Data\OleDb\PropertyInfoSet.cs (1)
147case VarEnum.VT_R4: return typeof(System.Single);
fx\src\data\System\Data\ProviderBase\DbBuffer.cs (3)
327internal unsafe Single ReadSingle(int offset) { 329return *(Single*)&value; 555internal unsafe void WriteSingle(int offset, Single value) {
fx\src\data\System\Data\Sql\SqlMetaData.cs (1)
1060case TypeCode.Single: value = this.Adjust((Single)value); break;
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (4)
95[FieldOffset(0)] internal Single _single; 293internal Single Single { 300return (Single)this.Value; // anything else we haven't thought of goes through boxing. 771case SqlBuffer.StorageType.Single: return typeof(Single);
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
260public override Single GetFloat(int ordinal) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (1)
713(7, 255, 4, true, false, false, TdsEnums.SQLFLT4, TdsEnums.SQLFLTN, MetaTypeName.REAL, typeof(System.Single), typeof(SqlSingle), SqlDbType.Real, DbType.Single, 0);
fx\src\data\System\Data\SqlClient\TdsParser.cs (6)
1606if (Single.IsInfinity(v) || Single.IsNaN(v)) { 5854WriteFloat((Single)value, stateObj); 5999WriteFloat((Single)value, stateObj); 10520WriteFloat((Single)value, stateObj); 10757return SerializeFloat((Single)value);
fx\src\data\System\Data\SqlClient\TdsRecordBufferSetter.cs (1)
149public override void SetSingle(SmiEventSink sink, int ordinal, Single value) {
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (1)
436internal void SetSingle(Single value) {
fx\src\data\System\Data\SQLTypes\SQLSingle.cs (9)
60if (Single.IsInfinity(value) || Single.IsNaN(value)) 125return new SqlSingle(Single.Parse(s, CultureInfo.InvariantCulture)); 150if (Single.IsInfinity(value)) 165if (Single.IsInfinity(value)) 180if (Single.IsInfinity(value)) 198if (Single.IsInfinity(value)) 535public static readonly SqlSingle MinValue = new SqlSingle(Single.MinValue); 539public static readonly SqlSingle MaxValue = new SqlSingle(Single.MaxValue);
fx\src\data\System\Data\XDRSchema.cs (1)
241new NameType("r4" , typeof(Single) ), /* XDR */
fx\src\data\System\Data\xmlsaver.cs (1)
218if (type == typeof(Single)|| type == typeof(SqlSingle))
fx\src\data\System\Data\XMLSchema.cs (1)
1577new NameType("float" , typeof(Single) ), /* XSD Apr */
System.Data.Entity (16)
System\Data\Common\EntitySql\AST\Literal.cs (2)
300Single value; 301if (!Single.TryParse(numberPart, NumberStyles.Float, CultureInfo.InvariantCulture, out value))
System\Data\EntityModel\SchemaObjectModel\ScalarType.cs (2)
314Single temp; 315if (!Single.TryParse(text, System.Globalization.NumberStyles.Float, System.Globalization.CultureInfo.InvariantCulture, out temp))
System\Data\Mapping\Update\Internal\Propagator.ExtentPlaceholderCreator.cs (1)
68typeDefaultMap[PrimitiveTypeKind.Single] = default(Single);
System\Data\Metadata\Edm\PrimitiveType.cs (1)
188return typeof(Single);
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (1)
221primitiveTypes[(int)PrimitiveTypeKind.Single] = CreatePrimitiveType(typeof(Single), PrimitiveTypeKind.Single);
System\Data\Metadata\Edm\Provider\EdmProviderManifest.cs (1)
163InitializePrimitiveType(primitiveTypes[(int)PrimitiveTypeKind.Single], PrimitiveTypeKind.Single, EdmConstants.Single, typeof(Single));
System\Data\Objects\DataClasses\StructuralObject.cs (6)
888protected internal static float SetValidValue(Single value, string propertyName) 904protected internal static float SetValidValue(Single value) 922protected internal static Nullable<Single> SetValidValue(Nullable<Single> value, string propertyName) 938protected internal static Nullable<Single> SetValidValue(Nullable<Single> value)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (2)
1117throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_TypedPositiveInfinityNotSupported(Enum.GetName(typeof(PrimitiveTypeKind), PrimitiveTypeKind.Single), typeof(Single).Name)); 1121throw EntityUtil.NotSupported(System.Data.Entity.Strings.SqlGen_TypedNegativeInfinityNotSupported(Enum.GetName(typeof(PrimitiveTypeKind), PrimitiveTypeKind.Single), typeof(Single).Name));
System.Data.Linq (1)
SqlClient\Query\SqlMethodCallConverter.cs (1)
2437if ((targetType == typeof(int) || targetType == typeof(Single)) && expr.ClrType == typeof(bool)) {
System.Data.Services (13)
System\Data\Services\Parsing\RequestQueryParser.cs (1)
1791return this.ParseTypedLiteral(typeof(Single), XmlConstants.EdmSingleTypeName, l);
System\Data\Services\Parsing\WebConvert.cs (6)
171else if (value.GetType() == typeof(Single)) 433else if (typeof(Single) == targetType) 441targetValue = default(Single); 564Debug.Assert(typeof(Single) == targetType, "typeof(Single) == targetType(" + targetType + ")"); 667else if (typeof(Single) == valueType) 669result = XmlConvert.ToString((Single)value);
System\Data\Services\Serializers\JsonDeserializer.cs (2)
126else if (propertyType == typeof(Single)) 153if (propertyType == typeof(Single))
System\Data\Services\Serializers\JsonSerializer.cs (2)
365else if (typeof(Single) == value.GetType()) 367this.writer.WriteValue((Single)value);
System\Data\Services\WebUtil.cs (2)
90new KeyValuePair<Type, string>(typeof(Single), XmlConstants.EdmSingleTypeName), 91new KeyValuePair<Type, string>(typeof(Single?), XmlConstants.EdmSingleTypeName),
System.Data.Services.Client (6)
parent\Server\System\Data\Services\Parsing\WebConvert.cs (3)
171else if (value.GetType() == typeof(Single)) 667else if (typeof(Single) == valueType) 669result = XmlConvert.ToString((Single)value);
System\Data\Services\Client\ClientConvert.cs (3)
333return XmlConvert.ToString((Single)propertyValue); 476types[(int)StorageType.Single] = typeof(Single); 510named.Add(XmlConstants.EdmSingleTypeName, typeof(Single));
System.Data.SqlXml (1)
System\Xml\Xsl\XsltOld\Processor.cs (1)
217parameter is Single || parameter is Decimal
System.Drawing (1)
commonui\System\Drawing\Color.cs (1)
1643public Single GetHue() {
System.IdentityModel (1)
System\IdentityModel\IdentityModelWrappedXmlDictionaryReader.cs (1)
400public override Single ReadContentAsFloat()
System.Management (10)
Instrumentation\SchemaMapping.cs (2)
409 else if(t2 == typeof(UInt32) || t2 == typeof(Int32) || t2 == typeof(Single)) 532 else if(t2 == typeof(Single))
property.cs (8)
464 if (val is Single[]) 468 wmiValue = new Single [length]; 470 ((Single[])(wmiValue))[i] = Convert.ToSingle(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.Single))); 571 wmiValue = Convert.ToSingle(val,(IFormatProvider)culInfo.GetFormat(typeof(System.Single))); 713 else if (elementType == typeof(System.Single)) 716 wmiValue = (System.Single[])val; 815 else if (valueType == typeof(System.Single))
System.Messaging (1)
System\Messaging\ActiveXMessageFormatter.cs (1)
379else if (obj is Single)
System.Numerics (61)
System\Numerics\BigInteger.cs (6)
472public BigInteger(Single value) 474if (Single.IsInfinity(value)) 476if (Single.IsNaN(value)) 1176public static explicit operator BigInteger(Single value) 1297public static explicit operator Single(BigInteger value) 1299return (Single)((Double)value);
System\Numerics\Complex.cs (1)
242public static implicit operator Complex(Single value) {
System\Numerics\Vector2.cs (3)
398public static Vector2 Multiply(Vector2 left, Single right) 410public static Vector2 Multiply(Single left, Vector2 right) 434public static Vector2 Divide(Vector2 left, Single divisor)
System\Numerics\Vector2_Intrinsics.cs (11)
18public Single X; 22public Single Y; 30public Vector2(Single value) : this(value, value) { } 38public Vector2(Single x, Single y) 51public void CopyTo(Single[] array) 64public void CopyTo(Single[] array, int index) 161return new Vector2((Single)Math.Sqrt(value.X), (Single)Math.Sqrt(value.Y)); 213public static Vector2 operator *(Single left, Vector2 right) 226public static Vector2 operator *(Vector2 left, Single right)
System\Numerics\Vector3.cs (3)
418public static Vector3 Multiply(Vector3 left, Single right) 430public static Vector3 Multiply(Single left, Vector3 right) 454public static Vector3 Divide(Vector3 left, Single divisor)
System\Numerics\Vector3_Intrinsics.cs (14)
19public Single X; 23public Single Y; 27public Single Z; 35public Vector3(Single value) : this(value, value, value) { } 51public Vector3(Single x, Single y, Single z) 64public void CopyTo(Single[] array) 78public void CopyTo(Single[] array, int index) 180return new Vector3((Single)Math.Sqrt(value.X), (Single)Math.Sqrt(value.Y), (Single)Math.Sqrt(value.Z)); 232public static Vector3 operator *(Vector3 left, Single right) 245public static Vector3 operator *(Single left, Vector3 right)
System\Numerics\Vector4.cs (3)
467public static Vector4 Multiply(Vector4 left, Single right) 479public static Vector4 Multiply(Single left, Vector4 right) 503public static Vector4 Divide(Vector4 left, Single divisor)
System\Numerics\Vector4_Intrinsics.cs (20)
18public Single X; 22public Single Y; 26public Single Z; 30public Single W; 39public Vector4(Single value) 51public Vector4(Single x, Single y, Single z, Single w) 65public Vector4(Vector2 value, Single z, Single w) 78public Vector4(Vector3 value, Single w) 92public void CopyTo(Single[] array) 106public void CopyTo(Single[] array, int index) 214return new Vector4((Single)Math.Sqrt(value.X), (Single)Math.Sqrt(value.Y), (Single)Math.Sqrt(value.Z), (Single)Math.Sqrt(value.W)); 266public static Vector4 operator *(Vector4 left, Single right) 279public static Vector4 operator *(Single left, Vector4 right)
System.Runtime.Remoting (1)
metadata\sudscommon.cs (1)
80internal static Type typeofSingle = typeof(Single);
System.Runtime.Serialization (8)
System\Runtime\Serialization\DataContract.cs (1)
756type = typeof(Single);
System\Xml\ValueHandle.cs (4)
323public Single ToSingle() 331if ((value >= Single.MinValue && value <= Single.MaxValue) || double.IsInfinity(value) || double.IsNaN(value)) 332return (Single)value;
System\Xml\XmlBaseReader.cs (1)
1718public override Single ReadContentAsFloat()
System\Xml\XmlDictionaryReader.cs (2)
685public override Single ReadContentAsFloat() 1720public override Single ReadContentAsFloat()
System.ServiceModel (2)
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (1)
793value = new Single[0];
System\ServiceModel\MsmqIntegration\ActiveXSerializer.cs (1)
372else if (obj is Single)
System.ServiceModel.Internals (10)
System\Runtime\TypeHelper.cs (10)
333result = (T)(object)(Single)sbyteSource; 368result = (T)(object)(Single)byteSource; 391result = (T)(object)(Single)int16Source; 420result = (T)(object)(Single)uint16Source; 440result = (T)(object)(Single)int32Source; 466result = (T)(object)(Single)uint32Source; 483result = (T)(object)(Single)int64Source; 500result = (T)(object)(Single)uint64Source; 532result = (T)(object)(Single)charSource; 547result = (T)(object)(Double)(Single)source;
System.ServiceModel.Web (3)
System\ServiceModel\Dispatcher\QueryStringConverter.cs (3)
38this.defaultSupportedQueryStringTypes.Add(typeof(Single), null); 103return parameter == null ? default(Single) : XmlConvert.ToSingle(parameter); 202return XmlConvert.ToString((Single) parameter);
System.Web (8)
Profile\HttpProfileBase.cs (1)
592return typeof(Single);
State\SessionStateItemCollection.cs (1)
171t=typeof(Single);
UI\ObjectConverter.cs (2)
116else if (typeof(Single).IsAssignableFrom(fromType)) { 117return ((Single)value).ToString(formatString, CultureInfo.InvariantCulture);
UI\WebControls\Unit.cs (1)
135this.value = (Single)converter.ConvertFromString(null, culture, numericPart);
UI\WebParts\WebPartManager.cs (2)
2439return typeof(Single); 2478else if (type == typeof(Single)) {
Util\altserialization.cs (1)
84else if (value is Single) {
System.Web.DataVisualization (6)
Common\DataManager\DataPoint.cs (5)
961 if(val is Single && Single.IsNaN((Single)val)) 1524 else if(columnDataType == typeof(Single)) 2042 else if(value is Single)
Common\DataManager\DataSeries.cs (1)
930 type == typeof(Single) ||
System.Web.DynamicData (1)
DynamicData\DataSourceUtil.cs (1)
29typeNameToTypeCode[typeof(Single)] = TypeCode.Single;
System.Web.Entity (2)
System\Data\WebControls\EntityDataSourceUtil.cs (2)
358return typeof(Single); 417return typeof(Single);
System.Web.Extensions (2)
UI\WebControls\Dynamic.cs (2)
611typeof(Single), 987if (Single.TryParse(text.Substring(0, text.Length - 1), out f)) value = f;
System.Web.Mobile (1)
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlMobileTextWriter.cs (1)
722public override void WriteLine(Single v) {
System.Windows.Forms (7)
winforms\Managed\System\WinForms\AxHost.cs (1)
5049if (o.GetType() == typeof(Single)) {
winforms\Managed\System\WinForms\Control.cs (1)
13432var factor = (float)deviceDpi / deviceDpiOld;
winforms\Managed\System\WinForms\ControlPaint.cs (2)
2308if (value == Single.NegativeInfinity || value == Single.PositiveInfinity) {
winforms\Managed\System\WinForms\DataGridTable.cs (1)
1477dataType.Equals(typeof(Single)) ||
winforms\Managed\System\WinForms\NativeMethods.cs (1)
4345else if (t == typeof(float) || t == typeof(Single)) {
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (1)
753var factor = (float)newDpi / oldDpi;
System.Windows.Forms.DataVisualization (6)
Common\DataManager\DataPoint.cs (5)
961 if(val is Single && Single.IsNaN((Single)val)) 1524 else if(columnDataType == typeof(Single)) 2042 else if(value is Single)
Common\DataManager\DataSeries.cs (1)
930 type == typeof(Single) ||
System.Xml (19)
System\Xml\BinaryXml\XmlBinaryReader.cs (3)
2893map[(int)BinXmlToken.SQL_REAL] = typeof(Single); 3799Single v = GetSingle(this.tokDataPos); 3942Single GetSingle(int offset) {
System\Xml\Serialization\PrimitiveXmlSerializers.cs (2)
63WriteElementStringRaw(@"float", @"", System.Xml.XmlConvert.ToString((System.Single)((System.Single)o)));
System\Xml\Serialization\XmlSerializationWriter.cs (1)
3104Writer.Write(((Single)value).ToString("R", NumberFormatInfo.InvariantInfo));
System\Xml\XmlConvert.cs (11)
720public static string ToString(Single value) { 721if (Single.IsNegativeInfinity(value)) return "-INF"; 722if (Single.IsPositiveInfinity(value)) return "INF"; 1035public static Single ToSingle (string s) { 1037if(s == "-INF") return Single.NegativeInfinity; 1038if(s == "INF") return Single.PositiveInfinity; 1039float f = Single.Parse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowDecimalPoint|NumberStyles.AllowExponent, NumberFormatInfo.InvariantInfo); 1047internal static Exception TryToSingle(string s, out Single result) { 1050result = Single.NegativeInfinity; 1054result = Single.PositiveInfinity; 1057else if (!Single.TryParse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowDecimalPoint|NumberStyles.AllowExponent, NumberFormatInfo.InvariantInfo, out result)) {
System\Xml\XPath\Internal\ExtensionQuery.cs (2)
105if (value is Single) return (double)(Single)value;
WindowsBase (9)
Base\System\Windows\Generated\Int32Rect.cs (1)
29using Float = System.Single;
Base\System\Windows\Generated\Point.cs (1)
29using Float = System.Single;
Base\System\Windows\Generated\Rect.cs (1)
29using Float = System.Single;
Base\System\Windows\Generated\Size.cs (1)
29using Float = System.Single;
Base\System\Windows\Generated\Vector.cs (1)
29using Float = System.Single;
Base\System\Windows\Markup\TypeConverterHelper.cs (3)
209else if (typeof(Single).IsAssignableFrom(type)) 293else if (type == typeof(Single)) 393else if (typeof(Single).IsAssignableFrom(type))
Base\System\Windows\Media\Generated\Matrix.cs (1)
30using Float = System.Single;