mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-13 19:55:02 +00:00
29 lines
533 B
C#
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
|
|
}
|
|
}
|