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 266 views
266 views asked Mar 14, 2017 by avibootz
2 answers 211 views
1 answer 153 views
1 answer 157 views
1 answer 113 views
1 answer 186 views
...