I have a Queue<T>
In my T I have a DateLoaded property.
I want to say if the DateLoaded is older than 5 minutes dequeue it and execute code on T
Is this possible?
Use the Peek() method.
You can call Peek to look at what the first element in the queue is.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With