I have MyClass.
And then I have this string s = \"MyClass. How can I get Type from the string s
I don't have much time to parse through this, though I think I have seen some similar answers. In particular, I think they are doing exactly what you want to do here:
Entity Framework Generic Repository Error
(String.Format("[{0}]", baseType.Name.ToString())).OfType();
Hopefully this helps, let me know more specifically if this isn't.