private string TypeToMoonType (Type t) { if (t == typeof (double)) return "double"; if (t == typeof (bool)) return "bool"; return t.Name; }