Comments on: C# Intermediate – Queue, Stack, and Hashtable https://code-maze.com/csharp-queue-stack-hashtable/ Learn. Code. Succeed. Sun, 23 Oct 2022 06:47:05 +0000 hourly 1 https://wordpress.org/?v=6.7.5 By: Akis https://code-maze.com/csharp-queue-stack-hashtable/#comment-5902 Sat, 18 Jun 2022 12:27:59 +0000 https://code-maze.com/?p=4733#comment-5902 In reply to Marinko Spasojević.

Yes, I saw it. Thank you and all the best!

]]>
By: Marinko Spasojević https://code-maze.com/csharp-queue-stack-hashtable/#comment-5849 Tue, 14 Jun 2022 11:23:47 +0000 https://code-maze.com/?p=4733#comment-5849 In reply to Akis.

That’s correct. This is a custom enumeration. You have a link to the source code at the top of the article, so feel free to inspect it and see for yourself.

]]>
By: Akis https://code-maze.com/csharp-queue-stack-hashtable/#comment-5848 Tue, 14 Jun 2022 11:17:39 +0000 https://code-maze.com/?p=4733#comment-5848 I didn’t get what the Element.First, .Second, etc. are. Do they enums we create?

]]>
By: saint4eva https://code-maze.com/csharp-queue-stack-hashtable/#comment-469 Sun, 28 Oct 2018 03:58:00 +0000 https://code-maze.com/?p=4733#comment-469 In reply to Pradeep.

Thank you.

]]>
By: Pradeep https://code-maze.com/csharp-queue-stack-hashtable/#comment-468 Sat, 27 Oct 2018 23:12:00 +0000 https://code-maze.com/?p=4733#comment-468 In reply to saint4eva.

Good for you.

]]>
By: saint4eva https://code-maze.com/csharp-queue-stack-hashtable/#comment-467 Sat, 27 Oct 2018 12:46:00 +0000 https://code-maze.com/?p=4733#comment-467 In reply to Pradeep.

I think it added a lot of values to my students.

]]>
By: saint4eva https://code-maze.com/csharp-queue-stack-hashtable/#comment-466 Sat, 27 Oct 2018 12:45:00 +0000 https://code-maze.com/?p=4733#comment-466 In reply to Nicolas Musset.

I think the article is excellent. Many new developers do work on old codebase where non-generic collections are heavily used. Is better to know both and decide which one to use. Notwithstanding, I so much value your comment.

]]>
By: Nicolas Musset https://code-maze.com/csharp-queue-stack-hashtable/#comment-464 Thu, 25 Oct 2018 11:13:00 +0000 https://code-maze.com/?p=4733#comment-464 It’s 2018. There are zero good reasons to use non-generic collection types.
I think a tutorial should just not include them at all. Even Microsoft recommend to not use any of the types defined before .Net 2.0 in new projects.
So exit ArrayList, Hashtable, Queue, Stack, etc.

]]>
By: Pradeep https://code-maze.com/csharp-queue-stack-hashtable/#comment-462 Thu, 25 Oct 2018 03:04:00 +0000 https://code-maze.com/?p=4733#comment-462 When discussing about topics, it would make more sense to group related topics in a single article, and to highlight the practical differences. HashTable has much in common with Dictionary, so it would be more advantageous to compare and contrast those two topics in one article, talking about which is more preferable in what use case, with some practical test results showing the differences in speed and memory utilisation etc. Otherwise this post is just as good as an msdn article, no added value for the reader. Just a thought.

]]>
By: Patrick Weber https://code-maze.com/csharp-queue-stack-hashtable/#comment-461 Thu, 25 Oct 2018 01:27:00 +0000 https://code-maze.com/?p=4733#comment-461 Practical examples can be helpful. I frequently use queues when i need an event handler to return quickly but the processing the handler is expected to do might take some time. I spawn a task to process the data from the queue, with a semaphore to signal the task when something is enqueued. The processing task pends on the semaphore if the queue is empty, but processes all items in the queue if it’s not. Decoulping events and event processing is one key use of queues.

]]>