Reputation: 12508
Why would you care what algorithm the CLR uses to hash the files in your assembly? When would you use this attribute?
Upvotes: 1
Views: 160
Reputation: 1060
Hash algorithm could depend on the size of files / time required to get hash and picked during compilation time. I.e.:
AssemblyAlgorithmIdAttribute also provides forward compatibility for future versions of hashing algorithms.
It could also depend on framework version - actual algorithm could've changed already since .net 1.1
Upvotes: 1
Reputation: 30097
May be if I am planning to read assembly from a non CLR program or in other words I am interested in manually reading the contents of assembly I can use the exact hash algorithm to decode the data contained in the assembly.
Upvotes: 1