Compute hash of class code at runtime (C#)?

Posted by Breck Fresen on Stack Overflow See other posts from Stack Overflow or by Breck Fresen
Published on 2010-03-19T20:44:12Z Indexed on 2010/03/19 20:51 UTC
Read the original article Hit count: 303

Filed under:
|

Is it possible to compute the hash of a class at runtime in C# (presumably through reflection)? To be clear, I don't want to compute the hashcode of an instance of said class, I want to compute the hash of the class code itself (if a function in the class changes, I'd expect a different hash code to be computed). Ideally this would only be sensitive to changes in the object code (and not just a hash of the string representation of the code itself).

Thanks in advance for your help,

-- Breck

© Stack Overflow or respective owner

Related posts about c#

Related posts about reflection