I receive byte array what contains assembly data.
How i can get assembly name from this data without loading assembly in appdomain ?
var assemblyName = GetAssemblyName(byte[] asmData);//doesn't load assembly to appDomain.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To get the assembly name without loading it into the current app domain, create a new AppDomain, use AppDomain.Load then call the FullName property. For example:
According to MSDN, assuming no other domains have loaded that assembly, it should be unloaded without being loaded into the current app domain.
If you do not want to load it into any app domain, save the bytes to a file and use AssemblyName.GetAssemblyName method.