You are developing a console application that uses .NET Framework text processing libraries. You write the following code to process text: StringBuilder sb = new StringBuilder(5); sb.Append(“01234567890123456789″); sb.Length = 10; sb.Append(“AB”); Console.WriteLine(“Length = {0}”, sb.Length); Console.WriteLine(“Capacity = {0}”, sb.Capacity); You must determine the value of sb.Length and sb.Capacity printed by this code segment. Which values [...]
{ 0 comments }