C#: Example record type with autogenerated Deconstruct method.

This commit is contained in:
Michael Nebel
2022-01-18 12:50:22 +01:00
parent 55f787bcae
commit 2eea6ca5fd

View File

@@ -61,4 +61,8 @@ class LocalScopeVariableShadowsMember
{
public C4(int f) { } // GOOD
}
record class GoodRecordClass(object Prop1, object Prop2) { } // GOOD
record struct GoodRecordStruct(object Prop1, object Prop2) { } // GOOD
}