private static bool BuffersAreEqual(StringBuffer a, StringBuffer b) { if (a is null) { return(b is null); } return(a.Equals(b)); }