C# How to add dynamic data and access and remove data fast

Oct 12 2015 7:48 AM
 

in C# I defined data type (array, array list, collection list, dictionar key , hashset ) for dynamic data

Hash set: add data slowly, remove data fast and access data element fast
Dictionary key : add data slowly, remove data fast and access data element fast
array list: add data fast, remove data slowly and access data element very slow (you must loop foreach for which you want element)
collection list : add data fast, remove data slowly and access data element slow (you must loop foreach for which you want element)
two dimession array: add data and access data element very fast but not to remove data and not add data dynamically.

So, How to add dynamic data and access and remove data element fast?


Answers (1)