using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Test { public class Test { public delegate Tuple func(char[] c, int i); public Dictionary func; public Test() { func = new Dictionary(); func['l'] = new func(list); //func['d'] = } public Tuple list(char[] x, int f) { List r = new List(); f = f+1; while (x[f] != 'e') { int v = f = func[x[f]](x, f); //ここでメソッド名が必要ですと言われる r.Add(v); } return Tuple.Create(r.ToArray(), f + 1); } } }