Would your 'readonly' annotation dictate that at compile time ?
eg
class Test {
private readonly string _testString {get;} public Test(string tstSrting) => _testString = tstSrting ;
We may be going off topic though. As I understand objects in typescript/js are explicitly mutable as expected to be via the interpertor. But will try and play with it.
class Test { public string Test { get; init; } }
The point does stand though, outside of modifying properties I'm not sure what a "private" class itself achieves.
Genuinely curious, why not? Seems to be less verbose. I don’t write C#s so I’m not sure of the downsides of any particular feature.
Would your 'readonly' annotation dictate that at compile time ?
eg
class Test {
}We may be going off topic though. As I understand objects in typescript/js are explicitly mutable as expected to be via the interpertor. But will try and play with it.