Esempio n. 1
0
        static private void DebugFormat(ref object ioObject)
        {
            IDebugString debugString = ioObject as IDebugString;

            if (debugString != null)
            {
                ioObject = debugString.ToDebugString();
            }
        }
Esempio n. 2
0
        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");
        }