Finding length of a String Builder in C#

Length property will give the total number of characters present in the string builder object.

using System;
using System.Text;

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

            StringBuilder sb1 = new StringBuilder("Time is gold");
            int iLength = sb1.Length;
            Console.WriteLine(iLength);            
                           
        }
    }
}


Output:
12