12 references to MaxCapacity
Microsoft.CodeAnalysis.CSharp (3)
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (3)
40/// <exception cref="ArgumentOutOfRangeException">Thrown when appending to a StringBuilder past the <see cref="StringBuilder.MaxCapacity"/> limit.</exception> 156/// <exception cref="ArgumentOutOfRangeException">Thrown when appending to a StringBuilder past the <see cref="StringBuilder.MaxCapacity"/> limit.</exception> 366/// <exception cref="ArgumentOutOfRangeException">Thrown when appending to a StringBuilder past the <see cref="StringBuilder.MaxCapacity"/> limit.</exception>
Microsoft.TestPlatform.CoreUtilities (3)
Extensions\StringBuilderExtensions.cs (3)
25if (result.Length >= result.MaxCapacity) 34if (result.Length + data.Length >= result.MaxCapacity) 36data = data.Substring(0, result.MaxCapacity - result.Length);
System.Private.CoreLib (6)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (6)
272if (value > MaxCapacity) 403/// <see cref="Capacity"/> of zero but retains its original <see cref="MaxCapacity"/>. 433if (value > MaxCapacity) 978if (insertingChars > MaxCapacity - this.Length) 1516/// <exception cref="ArgumentOutOfRangeException">The length of the expanded string would exceed <see cref="StringBuilder.MaxCapacity"/>.</exception> 1563/// <exception cref="ArgumentOutOfRangeException">The length of the expanded string would exceed <see cref="StringBuilder.MaxCapacity"/>.</exception>