readonly struct TestStruct {
public readonly string S;
public TestStruct(string s) => S = s;
}
sealed class TestClass {
TestStruct _ts;
public void SetTS(TestStruct ts) => _ts = ts;
public void PrintSLength() {
Console.WriteLine(_ts.S.Length); // NRE here if _ts hasn't been assigned a value yet
}
}