I have this code here, which is intended to allow any type of arguments:
public static void AreEqual(object expectedValue, object actualValue) {
if (expectedValue == actualValue) {
HttpContext.Current.Response.Write("Equal");
} else {
HttpContext.Current.Response.Write("Not Equal");
}
}
If I call it using a couple of ints it does not behave very well.
AreEqual(3, 3) // prints Not Equal