private int GetCommentIndent(CommentType commentType, ITextSnapshotLine line) { return(line.GetText().IndexOf(commentType.Token, StringComparison.Ordinal)); }
private string GetCommentText(CommentType commentType, ITextSnapshotLine line) { return(line.GetText().Substring(GetCommentIndent(commentType, line) + commentType.Token.Length).Trim()); }