Код: Выделить всё
class Test
{
public Dictionary Dictionary { get; set; }
}
static void Main(string[] args)
{
var x = new Test
{
Dictionary = // fails
{
{ "key", "value" }, { "key2", "value2" }
}
};
}
Код: Выделить всё
Dictionary = new Dictionary
Подробнее здесь: https://stackoverflow.com/questions/146 ... onsistency
Мобильная версия