![]() |
|
[.NET] Using collections to hold certain data - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] Using collections to hold certain data (/showthread.php?tid=5020818) |
Using collections to hold certain data - #Kat - Oct 13, 2015 Ok say that I have 3 separate tasks thes3 tasks hold values.. each task has a value of .. Task1 (itemname,current quantity,max quantity, user purchase list array) Example Task1 ("Ball", 23, 51, Customers) I've looked into using a hashtable in order to do so Hashtable to set parameters Task (1, 2 , 3, arraylist); Array list to dynamically control insertion of users and removal. . Sure can do this with hash table not sure yet how it will impact performance wise but if you guys have a better method let me know .. just gathering my idea before i get started this afternoon Btw.. Task will be in a class of its own . Rather direct this to Aeon due to his experience with net seal * - aleeeeeee - Oct 13, 2015 if i understand you can create a custom object: Code class Task} * - #Kat - Oct 13, 2015 Well luckily I actually just fully got a grasp of CSharp.. lol Anyways list items there should be a dynamic I'm pretty sure correct me if I'm wrong.. Good reply simple and to the point.. |