You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in csharplang/proposals/records.md
will the record have a Primary Deconstructor (a default Destruct method with the same field order?)
Also: I suggest to add a method named ToTuple to convert the record to a tuple. It will be nice also to create a record based on a tuple.
The text was updated successfully, but these errors were encountered:
That's probably a question for @gafter, who is likely to reply "maybe" to the first question. As far as I know, the design for records is still very much "up in the air" still.
@MohammadHamdyGhanem When the records proposal is revised, the operator is part will be replaced by a similar thing based on Deconstruct. The name has changed, but the behavior will be similar.
I'm not sure I understand the value in the proposed record-tuple conversion. Please open a new issue with your proposal, with an explanation of the benefits and examples.
in csharplang/proposals/records.md
will the record have a Primary Deconstructor (a default Destruct method with the same field order?)
Also: I suggest to add a method named ToTuple to convert the record to a tuple. It will be nice also to create a record based on a tuple.
The text was updated successfully, but these errors were encountered: