2
Answers

dictionary instantiation

Photo of nhamitha

nhamitha

9y
819
1

Hi frndss,

I have below class and property. 

public class myDictionary{

private static Dictionary<string, string> myDictionary;
public static Dictionary<string, string> MyDictionary
        {
            get { return myDictionary; }
            set { myDictionary = value; }
        }}

how can I instantiate it only one time using properties? please help me.

Answers (2)