Skip to content

Instantly share code, notes, and snippets.

@gordeev-dmitry
Created February 18, 2022 16:47
Show Gist options
  • Select an option

  • Save gordeev-dmitry/35f406c99dc701d7807915a9b3ebb0c4 to your computer and use it in GitHub Desktop.

Select an option

Save gordeev-dmitry/35f406c99dc701d7807915a9b3ebb0c4 to your computer and use it in GitHub Desktop.
ListPool example with using operator
using (var pooledObject = ListPool<Vector2>.Get(out List<Vector3> vertices))
{
GenerateMesh(vertices);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment