I have a Settings class like this:
public class Settings { [DefaultValue(0)] public int Count { get; set; } [DefaultValue(false)] public bool Enabled