Is there a way to reconstruct a tuple to a compatible class? – stackoverflow.com

Given a tuple (int, string) v and a class C { int, string }, in C#7, implementing C's Deconstruct(out int k, out string v) would allow the ff.: C c = new C(); (int k, string v) = c; But the reverse ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Is there a way to reconstruct a tuple to a compatible class? – stackoverflow.com"