Hello everyone:

I have two basic questions regarding hashtables and structs.

1) Is there any point in using a struct if the struct contains a string,
given that a string is a reference type?

2) What is the most efficent way to sort and filter a hashtable in .NET.
For example, if I have a hashtable that contains the following key/values:

A,object1
B,object2
C,object3

object1 has a foo field with a value of 4
object2 has a foo field with a value of 1
object3 has a foo field with a value of 2

What is the quickest way to retrieve an ordered subset of the items where
the foo field is less than or equal to 3?

thanks, Greg

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to