public bool IsLiteralPrimitive(IType type) { var typ = type as ExternalType; return typ != null && typ.PrimitiveName != null && _literalPrimitives.Contains(typ.PrimitiveName); }