What do you want to save?
Add Code snippet
New code examples
-
C# 2021-10-02 00:14:03
the 'this' object cannot be used before all of its fields are assigned to
struct MyStruct { public int SomeProp { get; set; } public MyStruct(int someVal) : this() { this.SomeProp = someVal; } } // By calling :this() from your constructor declaration you let the base ValueType class initialize all the backing fie... Add solution