decimal dt = 1.00M; decimal dt1 = 1M; bool d = dt == dt1; bool d2 = dt.ToString() == dt1.ToString();
这儿的d2是false的因为dt.ToString()是1.00,而dt1是1