internal static string Format(ESType esType) { var simpleESType = esType as SimpleESType; if (simpleESType != null) { return(Format(simpleESType.Type)); } var complexESType = (ComplexESType)esType; if (complexESType.BaseType == typeof(object) && complexESType.Interfaces.Length == 1) { return(Format(complexESType.Interfaces.Single())); } return("{" + Format(complexESType.BaseType) + ": " + string.Join(", ", complexESType.Interfaces.Select(Format).ToArray()) + "}"); }
private bool Allowed(ESType type) { return(allowed[(int)ToCLIType(type)]); }