nhamitha

nhamitha

  • NA
  • 99
  • 15.5k

dictionary instantiation

Jan 29 2016 11:18 AM

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)