Answer the question
In order to leave comments, you need to log in
C# What is the best storage for my data array?
Hello. I have several data types of this kind.
public class SomeClass1
{
public Int32 SomeKeyValue;
public Int32 SomeOtherValue1;
public String SomeOtherValue2;
}
public class SomeClass2
{
public SomeEnum SomeKeyValue;
public Int32 SomeOtherValue1;
public String SomeOtherValue2;
}
Answer the question
In order to leave comments, you need to log in
I really liked the Dictionary, which uses a key field from the class as a key. But in this case, I need to remove the key field from the class and store it in the dictionary key. Of course, you can not delete it, but it will be duplicated.
by the way, we compared ourselves, switch works 10 times faster than a dictionary .....
and to speed up, look at hash tables...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question