Is a readonly field in C# thread safe?
readonly
public class Foo { private readonly int _someField; public Foo() { _someField = 0; } publ
That depends what's in the field.
Reading from a readonly field, or from any field that is smaller than the word length (including all reference types) is an atomic operation.
However, the object inside the readonly field may or may not be thread-safe.