Exemple #1
0
        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()) + "}");
        }
Exemple #2
0
 private bool Allowed(ESType type)
 {
     return(allowed[(int)ToCLIType(type)]);
 }