Top "Readonly" questions

Read-only is a generic concept that means "not writeable" - Please DO NOT USE THIS TAG.

Assigning to static readonly field of base class

public class ClassA { public static readonly string processName; } public class ClassB : ClassA { static ClassB() { processName = "MyProcess.exe"; } } I am getting …

c# static readonly static-constructor