Skip to content

Instantly share code, notes, and snippets.

@christiannagel
Created May 26, 2017 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christiannagel/488cad518b1effe4eb5d406244cadc19 to your computer and use it in GitHub Desktop.
Save christiannagel/488cad518b1effe4eb5d406244cadc19 to your computer and use it in GitHub Desktop.
Creating arrays while using the GC
private static void UsingSimpleArraysWithGC()
{
Console.WriteLine(nameof(UsingSimpleArraysWithGC));
for (int i = 0; i < 20; i++)
{
GC.Collect(0);
LocalUseOfArray(i);
}
Console.WriteLine();
Console.WriteLine();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment