static void Main()
// Create two StringBuilders with the same contents.StringBuilder builder1 = new StringBuilder();
StringBuilder builder2 = new StringBuilder();
// See if the StringBuilder contents are equal.
Implementation. Equals returns true when 3 conditions are true. Two objects must have the same capacity, the same MaxCapacity, and the same characters in their buffers.