摘要: 经常在编程的时候会忽略==和equals的区别。从msdn上得知For predefined value types, the equality operator (==) returns true if the values of its operands are equal,falseotherwise.For reference types other thanstring,==returnstrueif its two operands refer to the same object.For thestringtype,==compares the values of the str 阅读全文
posted @ 2012-03-07 19:35 ChinaInterLude 阅读(132) 评论(0) 推荐(0)