How can I receive a string value, find an Entity with the same name and use this Entity as a type?
Thanks!!
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.
If you have a Type in an assembly called “RipperTest.dll”
and it’s namespace is “RipperTest” you would put the fully qualified assembly name with as the type string.
Before using this type you have to be sure it’s assembly is loaded if it’s not in the calling assembly.
for a class called “Ripper1” in the RipperTest namespace in the RipperTest.dll
and then to later use this type
If your original instance implements a specific interface you can cast to that interface instead of returning an object.
like so:
If you’re trying to return a list of classes from your current assembly you can do something like this: