Sambhashanam
तकनीकी संभाषणम्
Navigation
  • Microsoft Technologies
  • Java Technologies
  • LAMP Technologies
  • Opensource
    • Microsoft Opensource
    • LAMP Opensource
    • Java Opensource
You are here: Home › Microsoft Technologies › .Net collections
← After changing permalinks wordpress throwing 404 error
How to create user define properties in maven pom.xml →

.Net collections

June 22, 2013 | Filed under: Microsoft Technologies and tagged with: .net, C#, OOPS

Collection in .NET is a group of records treated as one logical unit. The .NET Framework provides specialized classes for data storage and retrieval. These classes provide support for stacks, queues, lists, and hash tables. Most collection classes implement the same interfaces, and these interfaces may be inherited to create new collection classes that fit more specialized data storage needs.

Collection Classes have the following properties:

  1. Collection classes are defined as part of the System.Collections or System.Collections.Generic namespace.
  2. Most collection classes derive from the interfaces ICollection, IComparer, IEnumerable, IList, IDictionary, and IDictionaryEnumerator and their generic equivalents.
  3. Using generic collection classes provides increased type-safety and in some cases can provide better performance, especially when storing value types. For more information, see Benefits of Generics.

There are four categories of collection:

  1. Index based collection – Help to get the record based on internally generated index for each collection. Examples:
    a. Array
    b. List
  2. Key-value collection – Help to get the record by using user defined key. Examples:
    a. Hashtable
    b. Shorted List
  3. Prioritized collection: Access the elements based on specific sequence like FIFO or LIFO. Examples:
    a. Stacks
    b. Queues
  4. Specialized collection. Examples:
    a. String Collections
    b. Hybrid dictionary – Start as list but later as hashtable

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Google+ (Opens in new window)

Related

Did you like this article? Share it with your friends!

Tweet

Written by Manish Kumar

Follow me on Twitter
← After changing permalinks wordpress throwing 404 error
How to create user define properties in maven pom.xml →

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Authors

  • Dhananjay Jha
  • Manish Kumar
  • Sushil Pandey

Recent Comments

  • muhammad on Mail merge in java for Microsoft Word document – Part I
  • muhammad on Mail merge in java for Microsoft Word document – Part I
  • Dhananjay Jha on Mail merge in java for Microsoft Word document and convert to PDF without iText – Part II
  • Clyde Symonette on Mail merge in java for Microsoft Word document and convert to PDF without iText – Part II
  • Dhananjay Kumar Jha on Mail merge in java for Microsoft Word document and convert to PDF without iText – Part II

Tag Cloud

.net activiti activiti-spring activiti bpmn C# change sender mail id in wordpress class classloader Conver MS Word to PDF disable user wordpress dox4j glassfish http response compression java Java Mail Merge MS Word javascript confirmation link on image jax-ws on tomcat jax-ws webservice Jee JTS junit junit-spring Link on Image with hidden URL link load spring configuration load spring configuration xml junit maven maven build Merge MS Word using Java Merge Word Document using XdocReport OOPS oracle weblogic PDF conversion using docx4j php mail function sample activiti process with human task and service task sending mail with attachment spring-orm spring framework spring hibernate spring hibernate integration spring jpa spring jpa hibernate integration tomcat jax-ws web service wordpress wordpress sender email

Looking for old post?

© 2021 Sambhashanam