11 references to EnsureCapacity
PresentationFramework (1)
src\Framework\System\Windows\Standard\NativeMethods.cs (1)
3064buffer.EnsureCapacity(buffer.Capacity * 2);
System.Configuration (1)
System\Configuration\ClientConfigPaths.cs (1)
123sb.EnsureCapacity(capacity);
System.Core (5)
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (5)
552sb.EnsureCapacity(bufferNeeded); 756sb.EnsureCapacity(channelNameNeeded); 782sb.EnsureCapacity(ProviderIdNeeded); 986sb.EnsureCapacity(bufferNeeded); 1138sb.EnsureCapacity(bufferNeeded);
System.IO.Log (1)
System\IO\Log\LogArchiveSnapshot.cs (1)
50baseLogFileName.EnsureCapacity(actualLength + 1);
System.Windows.Forms (2)
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (2)
382lpszFile.EnsureCapacity(capacity); 538buffer.EnsureCapacity(capacity);
WindowsBase (1)
Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (1)
494buffer.EnsureCapacity(buffer.Capacity * 2);