How to assign value to readonly field in an abstract class?

I have a field in base abstract class. I want to make this field readonly so that its value do not changed after child class has been initialized.

But abstract class cannot have constructor and readonly can only be initialized from constructor.

How to achieve this?

5
задан Uğur Aldanmaz 12 December 2014 в 12:54
поделиться