How can i remove one or more quotes from a string ? RRS feed

  • Question

  • If i have for example hi "" or "hi" or hello and " and hi ""

    In any case/s to remove the "

    I tried:

    foreach (List<string> l_branch in ListsExtractions.responsers)
                    TreeNode l_node = treeView1.Nodes.Add(l_branch[l_branch.Count - 1]);
                    if (l_node.Text.Contains("\""))
                        l_node.Text = l_node.Text.Replace("\"", string.Empty);

    But even if l_node.Text contain any " it's never doing the Replace line it's jumping over it.

    Tuesday, March 10, 2015 4:44 AM


All replies