Beispiel #1
0
        public string ToJson()
        {
            List <string> lst = new List <string>();

            lst.Add("\"define\"");

            List <string> lst2 = new List <string>();

            lst2.Add(this.GetMethodString());
            lst2.AddRange(this.GetArgNames().InterleavedWith(this.GetArgTypes().Select(at => DataTypeNames.NameOf(at))));
            lst.Add(string.Format("[{0}]", lst2.Select(a => string.Format("\"{0}\"", a)).Combine(", ")));

            return(string.Format("[{0}]", lst.Combine(", ")));
        }
Beispiel #2
0
 public static string TypeFingerprint(IEnumerable <DataType> types)
 {
     return(types.Select(t => DataTypeNames.NameOf(t)).Combine(","));
 }