I have read the following statement regarding to the comparison of C# value types in C# in Depth, Second Edition several times.
第77页
当一类参数未经约束时(对其不适用任何限制),你可以使用=和!=操作者,但只能将这种数值与无效进行比较。 你不能相互比较两种T型数值。
......
当某一类参数被限制为价值类型时,=和! 根本不能使用。
If I understand (I don t think so) it correctly, it basically tells me that you cannot use == or != to compare two value types. Why why why?
It will be better if a simple example can be given for this case. Can someone give me a little idea what the above paragraph tries to convey?