Howto take a glimpse into mscorlib?

久未见 提交于 2019-12-11 02:00:44

问题


I want to read data into RSAParameters structure ( RSAParameters ) and did check twice, that the data is correct. But still, I get an error "invalid data" exception for this:

   bei System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr)
   bei System.Security.Cryptography.Utils._ImportKey(SafeProvHandle hCSP, Int32 keyNumber, CspProviderFlags flags, Object cspObject, SafeKeyHandle& hKey)
   bei System.Security.Cryptography.RSACryptoServiceProvider.ImportParameters(RSAParameters parameters)

How can I take a look into the source code to check why _ImportKeys is throwing an exception? I have no experience with .dll 'decryption'..are there any symbols to reference somewhere for visual studio 8.0? Thank you.


回答1:


Use .NET Reflector to disassemble the DLL you want to examine.




回答2:


You can also use JetBrains dotPeek. It is 100% free.



来源:https://stackoverflow.com/questions/2943854/howto-take-a-glimpse-into-mscorlib

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!