As I'm writing my code I use this general format
private fields
public/protected properties allowing access as required
etc...
so I have this example struct
public struct SomeStruct {
private string m_SomeValue;
public string SomeValue { get=>m_SomeValue; set=>m_SomeValue = value; }
}
and Visual studio is suggesting that I change the property to this
public string SomeValue { readonly get=>m_SomeValue; set=>m_SomeValue = value; }
I've tried to find information on this, and haven't been able to, why is this a suggestion, and why would I want to do this?