Created
January 12, 2023 01:35
-
-
Save LGM-AdrianHum/d07fcd3f66f76e7856707a03e77b7abd to your computer and use it in GitHub Desktop.
Examine C# Queue<t> at element N
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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