private Boolean FindElement(String source, DocumentTag element)
 {
     return(source.Contains(element.JavaDocTag));
 }
        /// <summary>
        ///
        /// </summary>
        /// <param name="source"></param>
        /// <param name="element"></param>
        /// <param name="IsNamedElement"></param>
        /// <returns></returns>
        private String ParseElement(String source, DocumentTag element, Boolean IsNamedElement = false)
        {
            String[] line = source.Trim().Split(' ');

            if (element == DocumentTag.CommentBody)
            {
                if (line[0] == DocumentTag.CommentBody.JavaDocTag)
                {
                    line[0] = DocumentTag.CommentBody.CSharpDocTagBegin;
                }
            }
            else
            {
                if (line[0] == DocumentTag.CommentBody.JavaDocTag)
                {
                    line[0] = DocumentTag.CommentBody.CSharpDocTagBegin;
                }

                for (int i = 0; i < line.Length; i++)
                {
                    line[i] = line[i].Trim();
                    if (line[i] == element.JavaDocTag)
                    {
                        line[i] = element.CSharpDocTagBegin;
                        if (element.IsNamedElement)
                        {
                            if (i < line.Length)
                            {
                                line[i + 1] = line[i + 1] + element.CSharpDocTagBeginClose;
                            }
                        }
                        break;
                    }
                    if ((line[i] == "<p>") || (line[i] == "<P>"))
                    {
                        line[i] = "";
                    }
                }
            }
            var result = element.NeedCloseTag ? String.Join(" ", line) + element.CSharpDocTagEnd : String.Join(" ", line);

            result = result.Replace(element.CSharpDocTagBegin + " ", element.CSharpDocTagBegin);

            if (element.IsNamedElement)
            {
                result = result.Replace(@"""> ", @""">");
            }

            // Check if the param tag is for type parameter
            if (element == DocumentTag.Param)
            {
                if (result.Contains(@"<param name=""<"))
                {
                    result = result.Replace(@"<param name=""<", DocumentTag.TypeParam.CSharpDocTagBegin);
                    result = result.Replace(@">"">", @""">");
                    result = result.Replace(DocumentTag.Param.CSharpDocTagEnd, DocumentTag.TypeParam.CSharpDocTagEnd);
                }
            }

            return(result);
        }