Files
ICD.Common.Utils/ICD.Common.Utils/PrettyPrint.cs
2020-02-03 16:32:02 -05:00

29 lines
533 B
C#

using ICD.Common.Properties;
using ICD.Common.Utils.Json;
namespace ICD.Common.Utils
{
/// <summary>
/// Utils for printing various data types in human readable structures.
/// </summary>
public static class PrettyPrint
{
#region Methods
[PublicAPI]
public static void PrintLine([CanBeNull] object value)
{
string serial = ToString(value);
IcdConsole.PrintLine(serial);
}
[PublicAPI]
public static string ToString([CanBeNull] object value)
{
return JsonUtils.Format(value);
}
#endregion
}
}