-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLogics.cs
34 lines (31 loc) · 1.02 KB
/
Logics.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//*****************************************************************************
// Logics.cs - Helper class having various comparision logics used for querying.
//*****************************************************************************
using System.Linq.Expressions;
namespace QEngine
{
public class Logics
{
/// <summary>
/// Checks if object a is equal to ojbect b
/// </summary>
public static bool Equals(object a, object b)
{
return a.Equals(b);
}
/// <summary>
/// Checks if object a is greater than objetct b
/// </summary>
public static bool GreaterThan(object a, object b)
{
return double.Parse(a.ToString()) > double.Parse(b.ToString());
}
/// <summary>
/// Checks if object a is less than object b
/// </summary>
public static bool LessThan(object a, object b)
{
return double.Parse(a.ToString()) < double.Parse(b.ToString());
}
}
}