WeaverUtilities.

RequireCapacity<T>(List<T>, int) Method

Summary

If the System.Collections.Generic.List`1.Capacity is less than the specified value, it is increased to that value.
Assembly
Weaver.dll
Namespace
Weaver
Containing Type
WeaverUtilities

Syntax

public static void RequireCapacity<T>(this List<T> list, int minCapacity)

Type Parameters

Name Description
T

Parameters

Name Type Description
list List<T>
minCapacity int

Return Value

Type Description
void