c# version of pool