How to removes a range of characters from StringBuilder in C#

1 Answer

0 votes
using System;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            StringBuilder sb = new StringBuilder("Share insights and experience");

            sb.Remove(0, 5);
            Console.WriteLine(sb); //  insights and experience
        }
    }
}

/*
run:
  
 insights and experience

*/


answered Feb 25, 2015 by avibootz

Related questions

3 answers 250 views
250 views asked Mar 14, 2017 by avibootz
2 answers 189 views
1 answer 122 views
1 answer 142 views
1 answer 100 views
1 answer 170 views
...