Skip to content

Commit 9fc8ba0

Browse files
committed
Changed TryConvert methods in Src/UnitsNet/UnitConverter.cs to private.
1 parent 0453412 commit 9fc8ba0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Src/UnitsNet/UnitConverter.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ private static bool TryConvertMass(double value, Unit fromUnit, Unit toUnit, out
282282
}
283283
}
284284

285-
public static bool TryConvert(Length l, Unit toUnit, out double newValue)
285+
private static bool TryConvert(Length l, Unit toUnit, out double newValue)
286286
{
287287
switch (toUnit)
288288
{
@@ -326,7 +326,7 @@ public static bool TryConvert(Length l, Unit toUnit, out double newValue)
326326
}
327327
}
328328

329-
public static bool TryConvert(Volume volume, Unit toUnit, out double newValue)
329+
private static bool TryConvert(Volume volume, Unit toUnit, out double newValue)
330330
{
331331
switch (toUnit)
332332
{
@@ -368,7 +368,7 @@ public static bool TryConvert(Volume volume, Unit toUnit, out double newValue)
368368
}
369369
}
370370

371-
public static bool TryConvert(Mass m, Unit toUnit, out double newValue)
371+
private static bool TryConvert(Mass m, Unit toUnit, out double newValue)
372372
{
373373
switch (toUnit)
374374
{
@@ -422,7 +422,7 @@ public static bool TryConvert(Mass m, Unit toUnit, out double newValue)
422422
}
423423
}
424424

425-
public static bool TryConvert(Pressure p, Unit toUnit, out double newValue)
425+
private static bool TryConvert(Pressure p, Unit toUnit, out double newValue)
426426
{
427427
switch (toUnit)
428428
{
@@ -463,7 +463,7 @@ public static bool TryConvert(Pressure p, Unit toUnit, out double newValue)
463463
}
464464
}
465465

466-
public static bool TryConvert(Force f, Unit toUnit, out double newValue)
466+
private static bool TryConvert(Force f, Unit toUnit, out double newValue)
467467
{
468468
switch (toUnit)
469469
{
@@ -495,7 +495,7 @@ public static bool TryConvert(Force f, Unit toUnit, out double newValue)
495495
}
496496
}
497497

498-
public static bool TryConvert(Torque t, Unit toUnit, out double newValue)
498+
private static bool TryConvert(Torque t, Unit toUnit, out double newValue)
499499
{
500500
switch (toUnit)
501501
{
@@ -509,7 +509,7 @@ public static bool TryConvert(Torque t, Unit toUnit, out double newValue)
509509
}
510510
}
511511

512-
public static bool TryConvert(TimeSpan t, Unit toUnit, out double newValue)
512+
private static bool TryConvert(TimeSpan t, Unit toUnit, out double newValue)
513513
{
514514
switch (toUnit)
515515
{

0 commit comments

Comments
 (0)