SEARCH C# PROGRAMMING CODES HERE

Collections

Collections In C#

In C#, gathering addresses get-together of the object. By the help of collections, we can perform various exercises on the object, for instance,

1-store object
2-update object
3-Delete object
4-sort object
5-look for an item
6 Retrieve object

Sorts of Collections 

There are 3 unique approaches to work with collections. The three namespaces are given underneath:

1-System.Collections.Generic classes

2-System.Collections classes (Now lamented)

3-System.Collections.Concurrent classes

1) System.Collections.Generic classes 

 System.Collections.Generic namespace classes as follows.

Once-over

Stack

Line

LinkedList

HashSet

SortedSet

Dictionary

SortedDictionary

SortedList

2) System.Collections classes 

These classes are legacy. It is prescribed currently to use System.Collections.Generic classes. The System. Collections namespace classes as follows.

ArrayList

Stack

Line

Hashtable

3) System.Collections.Concurrent classes 

The System.Collections.Concurrent namespace offers classes to string safe errands. By and by different strings won't make an issue for getting to the social event things.

System.Collections.Concurrent namespace  classes as follows.

BlockingCollection

ConcurrentBag

ConcurrentStack

ConcurrentQueue

ConcurrentDictionary

Partitioner

Partitioner

OrderablePartitioner



No comments:

Post a Comment