Witam
public string s1 {get; set; }
public string s2 {get; set; }
public string s3 {get; set; }
public Dictionary<int, string> d = new Dictionary<int, string>();
d.Add(1,s1);
d.Add(2,s1);
d.Add(3,s1);
...
d[2] = "2222";
Potrzebuję do słownika wstawić referencje do właściwości. W powyższym przykładzie wstawia mi tam wartość podstawioną z get.
Czy jest jakiś sposób aby linia d[2] = "2222"; wstawiła do s2 ten łańcuch.