C # Как установить значение по умолчанию для автоматических свойств?

I have some interface and class implementing that interface:

public interface IWhatever {
   bool Value { get; set;}
}

public class Whatever : IWhatever {
   public bool Value { get; set; }
}

Now, does C# allow the Value to have some default value without using some backing field?

5
задан Binary Worrier 4 May 2011 в 15:38
поделиться