GENERIC COLLECTIONS IN C#

WHY DO  WE NEED GENERICS ?

                                     1.  Another method of software RE use .
          
                                     2.  compiler  performs  type checking   to ensure that the array  passed through the sorting method  contains only elements of the same  type .

3.It provides compile time type safety .

DICTIONARY :

                            A  DICTIONARY  is     a  GENERAL TERM FOR COLLECTION OF KEY/VALUE PAIRS .
                              
                        A hash    table   is   one    way to implement   dictionary .

     String [] words =regex.split(input,"#");
  
        

Method/PROPERTIES :

ADD,CLEAR ,CONTAINS,COUNT ,INDEX OF ,INSERT,REMOVE

ADD:

CLEAR :

INSERT :


REMOVE :

Collection Interfaces :

All Collection classes  in the .net frameowrk implement some combination of colletion  Interfaces .


ICOLLECTION,IDICTIONARY,ILIST,IENUMERABLE  :

                                                                         IT is the methods for searching and modifiying .It provides index of accessing elements with  an int index .

                                                                    Also methods for searching and modifying .






Comments