Type t = Type.GetType("BLL.MyLayers.TestLayer,BLL");
t is always null for a generic class.
When I try to get the type for a normal class t is not null.
Why is that or do I something wrong?
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.
Generic types are compiled using a little trick:
Note that the apostrophe isn’t a quote, but the key to the left of the 1 key (on most keyboards).