G
Guest
I have two object that has been acquired using reflection as follow:
string str = "123";
object param1 = dataRow["myRow"];
System.Type paramType = param1.GetType();
System.Reflection.MethodInfo Parse = paramType.GetMethod("Parse", new Type[]
{typeof(String)});
object param2 = Parse.Invoke(param1, new object[] { str });
Now I have two objects: param1 and param2.
Both params are of the same type.
Now I wish to compare this two using the >, <, <= etc.
But I manage to use only the == and != operators on them.
Can anybody How can I use >, <, <= , >= on the param1 and param2 above ?
string str = "123";
object param1 = dataRow["myRow"];
System.Type paramType = param1.GetType();
System.Reflection.MethodInfo Parse = paramType.GetMethod("Parse", new Type[]
{typeof(String)});
object param2 = Parse.Invoke(param1, new object[] { str });
Now I have two objects: param1 and param2.
Both params are of the same type.
Now I wish to compare this two using the >, <, <= etc.
But I manage to use only the == and != operators on them.
Can anybody How can I use >, <, <= , >= on the param1 and param2 above ?