how to get data into dictionary collection in c#.net?
hi, have dictionary collection stored name , value. instance have 500 records stored in collection below- dictionary<string,int> dict=new dictionary<string,int>(); dict.add("a",1); dict.add("b",2); -- dict.add("aab",500); i have method name getdata(int pagenumber,dictionary<string,int>() mydictionary) takes 2 aurguments. first pass page number,and second have collection. want achieve, if pass page number 1 dictionary collection maintain 1-100 key value pair. if passed 2 dictionary collection maintain 101-200 key value pair. , keep going such fashion. means want create dynamic approach approach appreciated! below code have implemented, static want dynamic- public dictionary<string, int> createcollection() { dictionary.add("a", 1); ...