Posts

Showing posts from July, 2024
Image
  Effective Use of C Sharp Collections Dev  Are you aware that most developers do not use C# collections effectively?  The reason is that they don't experience a performance difference unless they manage or manipulate large datasets.  This document doesn't cover all topics related to C# collections; it only addresses a few collections from both generic and non-generic types. Introduction The diagram below shows the namespaces and their supported collections. This document covers the items highlighted in green in the diagram. Collections allow for dynamic memory allocation for operations such as adding, updating, deleting, searching, and sorting items. Generic Collection  Type Safety: It is strongly typed, ensuring consistent data types within a collection.   Otherwise, we get a compilation error.  No boxing is needed  There is no data loss due to type mismatch.  Deliver better performance Non-Generic Co...