Welcome to Keen Software House Forums! Log in or Sign up to interact with the KSH community.
  1. You are currently browsing our forum as a guest. Create your own forum account to access all forum functionality.

[Suggest] Allow System.Collections.ObjectModel.KeyedCollection<>

Discussion in 'Programming Questions and Suggestions' started by CommanderGizmo, Jan 25, 2015.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. CommanderGizmo Apprentice Engineer

    Messages:
    133
    Please allow access to System.Collections.ObjectModel.KeyedCollection<>. It would greatly simplify the use of complex lists we need to use since dictionaries cannot use foreach. It would also make dealing with lists of structs much easier.
     
  2. Malware Master Engineer

    Messages:
    9,507
    Or rather fix the gosh darn foreach problem :D
     
  3. Phoera Senior Engineer

    Messages:
    1,713
    fix foreach, and than allow LINQ, i will be happy.
     
  4. CommanderGizmo Apprentice Engineer

    Messages:
    133
    Actually, I already fixed ForEach, and just wrote my own KeyedCollection, but I'd much rather just have access to the built-ins.

    You really ought to look into KeyedCollection, as it makes using structs in lists act just like a dictionary without the need for a separate synced list of key values.
     
Thread Status:
This last post in this thread was made more than 31 days old.