Skip to content

Instantly share code, notes, and snippets.

@LGM-AdrianHum
Created January 12, 2023 01: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 LGM-AdrianHum/d07fcd3f66f76e7856707a03e77b7abd to your computer and use it in GitHub Desktop.
Save LGM-AdrianHum/d07fcd3f66f76e7856707a03e77b7abd to your computer and use it in GitHub Desktop.
Examine C# Queue<t> at element N
using System.Linq;
Queue<T> queue = new Queue<T>();
T result;
result = queue.ElementAt(2);
result = queue.ElementAtOrDefault(2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment