Пример #1
0
        //────────────────────────────────────────

        /// <summary>
        /// 警告メッセージの定型文を作ります。
        /// </summary>
        /// <returns></returns>
        public static string ToText_Configuration(
            Configuration_Node parent_Conf
            )
        {
            Log_TextIndented s = new Log_TextIndentedImpl();

            if (null == parent_Conf)
            {
                s.Append("  親要素が指定されていません。");
            }
            else
            {
                s.Append("  設定位置パンくずリスト(問題個所ヒント):");
                s.Newline();
                s.Newline();
                parent_Conf.ToText_Locationbreadcrumbs(s);
                s.Newline();
                s.Newline();

                parent_Conf.ToText_Content(s);
                s.Newline();
                s.Newline();

                s.Append(Log_RecordReportsImpl.ToText_Separator());

                s.Append("  問題を報告したオブジェクトの型: ");
                s.Append(parent_Conf.GetType());
                s.Append(" (これはラッパークラスということもあるかも知れません)");
                s.Newline();
                s.Newline();
            }


            return(s.ToString());
        }
Пример #2
0
        //────────────────────────────────────────
        /// <summary>
        /// 警告メッセージの定型文を作ります。
        /// </summary>
        /// <returns></returns>
        public static string ToText_Configuration(
            Configuration_Node parent_Conf
            )
        {
            Log_TextIndented s = new Log_TextIndentedImpl();

            if (null == parent_Conf)
            {
                s.Append("  親要素が指定されていません。");
            }
            else
            {
                s.Append("  設定位置パンくずリスト(問題個所ヒント):");
                s.Newline();
                s.Newline();
                parent_Conf.ToText_Locationbreadcrumbs(s);
                s.Newline();
                s.Newline();

                parent_Conf.ToText_Content(s);
                s.Newline();
                s.Newline();

                s.Append(Log_RecordReportsImpl.ToText_Separator());

                s.Append("  問題を報告したオブジェクトの型: ");
                s.Append(parent_Conf.GetType());
                s.Append(" (これはラッパークラスということもあるかも知れません)");
                s.Newline();
                s.Newline();
            }

            return s.ToString();
        }