Removing a string in a String Builder in C#

This code explains how to remove the characters/string in a String Builder object.

Syntax:

If obj is a string builder object then,
obj.Remove(int startindex, int length);


Example:

using System;
using System.Text;

namespace forgetCode
{    
    class program
    {        
        public static void Main()
        {            

            StringBuilder sb = new StringBuilder("Time is gold");

            sb.Remove(5, 2);

            Console.WriteLine(sb.ToString());
               
        }
    }
}


Output:
Time gold