Code inspections

This commit is contained in:
2019-10-01 20:57:49 +01:00
parent 23960d8c7c
commit babb2a7492
6 changed files with 95 additions and 71 deletions
+13
View File
@@ -10,5 +10,18 @@ namespace ASCOM.Meade.net
return false;
return true;
}
public static ComparisonResult Compare(this double value, double comparison)
{
var result = value.CompareTo(comparison);
if (result < 0)
return ComparisonResult.Lower;
if (result == 0)
return ComparisonResult.Equals;
return ComparisonResult.Greater;
}
}
}