I have recently been looking into using generics to hold collections of objects as I like the type safe features they provide. But I want to be able to store objects with a key for easy finding. Which is the best object to do this? Is it a dictionary?
Searchable Generic
Collapse
X
-
I was referring to Generic.Diction ary(Of String, Object)
I have had a brief look at LINQ but I think to implement it would require an overhaul of the site somewhat. It doesn't seem to make sense to use it only in one place.
Also the objects I am building are not from database tables but from settings defined as committed text in the stored procedures. Which I don't think LINQ would be any good for.Comment
-
Originally posted by Bob RossI was referring to Generic.Diction ary(Of String, Object)
I have had a brief look at LINQ but I think to implement it would require an overhaul of the site somewhat. It doesn't seem to make sense to use it only in one place.
Also the objects I am building are not from database tables but from settings defined as committed text in the stored procedures. Which I don't think LINQ would be any good for.
Anyway, have you looked at using a Hash Table?
Hash tables let you store objects with a key....Comment
Comment