Niu Kun <(E-Mail Removed)> wrote:
> Or you can switch a class's HashCode.
> That may be faster.
Never assume that a hashcode will be unique - they're not guaranteed to
be unique.
However, your solution also assumes that all the required types are
known at compile-time. The benefit of reflection-based solutions is
that they're very neutral - you can load any type from any assembly
(within reason).
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too