4
Um inicializador de campo não pode fazer referência ao campo, método ou propriedade não estática
Eu tenho uma aula e quando tento utilizá-la em outra aula recebo o erro abaixo. using System; using System.Collections.Generic; using System.Linq; namespace MySite { public class Reminders { public Dictionary<TimeSpan, string> TimeSpanText { get; set; } // We are setting the default values using the Costructor public Reminders() { TimeSpanText.Add(TimeSpan.Zero, …
92
c#