public static Type GetType(IContext context, string name) { object obj = context.GetValue(name); if (obj != null && obj is Type) return (Type)obj; return GetType(name); }