I’m trying to do something that gets a cs file in runtime from user make it meaningful to assembly get its properties, methods etc.
Is there a way to do this by reflection in C#?
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 compile a file on the fly you’ll need to do something along these lines (where sourceCode is a string containg the code to compile):