static private void DebugFormat(ref object ioObject) { IDebugString debugString = ioObject as IDebugString; if (debugString != null) { ioObject = debugString.ToDebugString(); } }
public static void Debug(IDebugString iDebugString, bool isJson = false, string tag = "", [CallerFilePath] string filePath = "", [CallerMemberName] string method = "") { DiagDebug.WriteLine($"\n<--\n\t<FilePath:\t{filePath} />" + $"\n\t<Tag:\t{tag} />" + $"\n\t<Method:\t{method} />\n" + $"<Message:"); if (!isJson) { DiagDebug.WriteLine("\t" + iDebugString.ToDebug()); } else { DiagDebug.WriteLine(iDebugString.ToDebug()); } DiagDebug.WriteLine("\n/>\n--/>\n"); }