According to MSDN it’s possible to create a NEW assembly in runtime using, for example, Reflection.Emit and add a new class in it, I just would like to avoid such an overkill and create the class in an existing assembly.
Is it possible?
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.
You can’t alter existing assemblies, as they are read-only once they are loaded (not to mention the problem of strong name signing). There is generally no disadvantage to creating a new assembly; what prevents you from doing so?