This question already has an answer here:
I have a class like:
public static class State
{
public const int Open = 1;
public const int InProgress = 2;
public const int Rejected = 3;
public const int OnHold = 4;
}
I need to create dictionary that will contains all const with values. How can I get dictionary<string, string>
with values:
Key Value
--------------
Open 1
InProgress 2
Rejected 3
OnHold 4
Aucun commentaire:
Enregistrer un commentaire