المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Getting the type from a string, any magic for this in C#?



C# Programming
04-05-2009, 12:31 PM
If i have a string, lets say the string is "System.Float".

Is there anyway i can get the type from that string? (ie a float).

And do something like this:

Float f = new GetMagicTypes();