Exemplo n.º 1
0
        private static string LineComPostFix(CommentType type, LineComSeparator sep = LineComSeparator.None)
        {
            if (type != CommentType.TypeXml)
            {
                return("");                 //	ブロックコメント型はXMLのみセットする
            }
            string lineText = "";

            if (sep != LineComSeparator.None)
            {
                lineText += (char)sep;
            }
            lineText += "-->";
            return(lineText);
        }
Exemplo n.º 2
0
        private static string LineComPrefix(CommentType type, LineComSeparator sep = LineComSeparator.None)
        {
            string lineText = "";

            switch (type)
            {
            case CommentType.TypeCs:
                lineText = "//";
                break;

            case CommentType.TypeVb:
                lineText = "'";
                break;

            case CommentType.TypeXml:
                lineText = "<!--";
                break;
            }
            if (string.IsNullOrWhiteSpace(lineText) == false && sep != LineComSeparator.None)
            {
                lineText += (char)sep;
            }
            return(lineText);
        }