Ich habe folgendes Auto ImmobilienDefault Attribut funktioniert nicht mit meinem Auto Property
[DefaultValue(true)]
public bool RetrieveAllInfo { get; set; }
wenn ich versuche, es zu benutzen, in den Code i falsch den Standard finden false
ist ich nehme an, dies ist der Standardwert eine bool
Variable, hat jemand eine Ahnung, was ist falsch?
[Ähnliche Frage] (http://stackoverflow.com/questions/705553/net-defaultvalueattribute-on-properties). In VS2015: 'public bool RetrieveAllInfo {erhalten; einstellen; } = true; 'Es ist [C# 6] (https://blogs.msdn.microsoft.com/csharpfaq/2014/11/20/new-features-in-c-6/) -Funktion. – marbel82