Hi Guest

HomePage

1 1

To improves our performance please Like Share Subscribe(Will boost us)

Write down some important difference in between Generic and Non-Generic Collection in cSharp?
Question Posted on 26 Apr 2022

Home >> DotNet >> C# >> Write down some important difference in between Generic and Non-Generic Collection in cSharp?

Write down some important difference in between Generic and Non-Generic Collection in cSharp?
Below are the most important difference in between Generic and Non-Generic collection:-
0
0

Base of DifferenceGenericNon-Generic
DefinitionGeneric collection is a claa which provides type safety without having to derive from a base collection type and then implement type specific members.And on other hand Non-generic collection is specialized class for data storage and retrieval which basically provides support for stacks, queues, lists and hashtables.
TypeGeneric collection is strongly types.Non-generic collection is not a strongly types.
NamespaceGeneric collection classes are in the System.Collections.Generics namespace.Non-generic collection classes are in System.Collections namespace.
Storing ElementsIn Generic collections basically used to store elements internally in arrays of their actual types.In Non-generic collections elements are store internally in object arrays so that it can store any type of data.
ExampleList<T>,Dictionary<TKey, TValue>,SortedList <TKey,TValue>,HastSet<T>,Queue<T>,Stack<T>ArrayList, Queue,stack etc.
TypeCastThere is not need for TypeCastingHere programmer need to type cast to correct data type.
   


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




Other Important Questions
Simplest definition of partial classes and its rules?
Definition of Tuple class with some examples?
Define Race Condition in cSharp?
C#.Net Reserve Words
can we inherit private class level variables in c#






Most Visited Questions
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |
     
 
Privacy policy | Terms and Conditions | Blog


If the copyright of any questions or content or syntax belong to you email us we will remove that(info@crackyourinterview.com or crackyourinterview2018@gmail.com)
 

1
Home About Us GroupChat
 
Sitemap Feedback Contact us