I have a static dictionary field. How do I conditonally include a 3rd item based on a certain condition?
public static Dictionary<int, Object> dic = new Dictionary<int,Object>{
{1, new Object()},
{2, new Object()},
};
>Solution :
I think the condition is static too. So you could use a Static Contructor to initiliaze the Dictionary with conditions.