Ejemplo n.º 1
0
        public static object Resolve(this AstType type, EvaluationContext ctx)
        {
            var args = new List <object> ();
            var name = type.Resolve(ctx, args);

            //if (name.StartsWith ("global::"))
            //	name = name.Substring ("global::".Length);

            if (args.Count > 0)
            {
                return(ctx.Adapter.GetType(ctx, name, args.ToArray()));
            }

            return(ctx.Adapter.GetType(ctx, name));
        }