File tree Expand file tree Collapse file tree 3 files changed +6
-13
lines changed
src/Synercoding.Primitives Expand file tree Collapse file tree 3 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ public Orientation Orientation
73
73
public Size ConvertTo ( Unit unit )
74
74
{
75
75
return new Size (
76
- width : Width . ConvertTo ( unit ) ,
77
- height : Height . ConvertTo ( unit ) ,
76
+ width : Width . ConvertTo ( unit ) . Raw ,
77
+ height : Height . ConvertTo ( unit ) . Raw ,
78
78
unit ) ;
79
79
}
80
80
Original file line number Diff line number Diff line change @@ -93,10 +93,10 @@ public static Spacing Nothing
93
93
public Spacing ConvertTo ( Unit unit )
94
94
{
95
95
return new Spacing (
96
- left : Left . ConvertTo ( unit ) ,
97
- top : Top . ConvertTo ( unit ) ,
98
- right : Right . ConvertTo ( unit ) ,
99
- bottom : Bottom . ConvertTo ( unit ) ,
96
+ left : Left . ConvertTo ( unit ) . Raw ,
97
+ top : Top . ConvertTo ( unit ) . Raw ,
98
+ right : Right . ConvertTo ( unit ) . Raw ,
99
+ bottom : Bottom . ConvertTo ( unit ) . Raw ,
100
100
unit ) ;
101
101
}
102
102
Original file line number Diff line number Diff line change @@ -238,12 +238,5 @@ public bool Equals(Value other)
238
238
/// <returns>The result of the division operation</returns>
239
239
public static double operator / ( Value a , double b )
240
240
=> a . Raw / b ;
241
-
242
- /// <summary>
243
- /// Convert the <see cref="Value"/> to a <see cref="double"/>, losing the <see cref="Unit"/> in the process.
244
- /// </summary>
245
- /// <param name="value">The <see cref="double"/> value of this <see cref="Value"/></param>
246
- public static implicit operator double ( Value value )
247
- => value . Raw ;
248
241
}
249
242
}
You can’t perform that action at this time.
0 commit comments