Sharpen.Runtime.GetType C# (CSharp) Method

GetType() public static method

public static GetType ( string name ) : Type
name string
return System.Type
        public static Type GetType(string name)
        {
            foreach (Assembly a in AppDomain.CurrentDomain.GetAssemblies ()) {
                Type t = a.GetType (name);
                if (t != null)
                    return t;
            }
            throw new InvalidOperationException ("Type not found: " + name);
        }