I'm new to C#. The following code is how I would achieve what I want in C++. I have reasons that the struct needs to be a struct (and mutable).
What would the C# equivalent of the following code be?
struct SomeStruct { int a; int b; }; class SomeClass { public: SomeStruct& target; public: SomeClass(SomeStruct &t) : target(t) { } }; I want to be able to use instances of SomeClass to mutate the underlying struct. I have seen this question but in my case the target is a struct.