namespace Mediapipe.Tasks.Components.Containers; internal static class Util { public static string Format(T value) { return value == null ? "null" : $"{value}"; } public static string Format(string? value) { return value == null ? "null" : $"\"{value}\""; } public static string Format(List? list) { if (list == null) return "null"; string str = string.Join(", ", list.Select(x => x?.ToString() ?? "null")); return $"[{str}]"; } }