Boo.Lang.Compiler.TypeSystem.Generics.GenericsServices.InferMethodGenericArguments C# (CSharp) Метод

InferMethodGenericArguments() публичный Метод

Attempts to infer the generic parameters of a method from a set of arguments.
public InferMethodGenericArguments ( IMethod method, Boo.Lang.Compiler.Ast.ExpressionCollection arguments ) : IType[]
method IMethod
arguments Boo.Lang.Compiler.Ast.ExpressionCollection
Результат IType[]
        public IType[] InferMethodGenericArguments(IMethod method, ExpressionCollection arguments)
        {
            if (method.GenericInfo == null) return null;

            GenericParameterInferrer inferrerr = new GenericParameterInferrer(Context, method, arguments);
            if (inferrerr.Run())
            {
                return inferrerr.GetInferredTypes();
            }
            return null;
        }