Why properties in C# cannot be readonly ?
When I try to have a property readonly it states that:
a modifier 'readonly' is not valid for this item
Simmilar question was asked here: Why can't properties be readonly? But the question was asked 5 years ago, and the answer provided then was: Because they didn't think it thru. Is this still the case after 5 years?
edit: Code example:
public class GreetingClass
{
public readonly string HelloText { get; set; }
}