Solved

[C#6] Initializing an Auto-Implemented Property in Its Declaration Is a C

Question 76

Multiple Choice

[C#6] Initializing an auto-implemented property in its declaration is a C# 6 feature known as auto-property initializers.Which of the following is the general syntax for a read-write auto-implemented property with an initializer


A) Type PropertyName {get,set;} = initializer;
B) Type PropertyName {get | set} = initializer;
C) Type PropertyName {get;set} = initializer;
D) Type PropertyName {get;set;} = initializer;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions