Skip to content
Discussion options

You must be logged in to vote

for now you could use a record public record MyTupleType(int, string); and return new (integer, text).
(note these are reference types. struct records is planned, and likely is going to be implemented for vnext)

To define an alias like that without defining a new type, you need two features: primitive aliases and global aliases. afaik both are being considered for a future version.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@vbilopav
Comment options

Comment options

You must be logged in to vote
1 reply
@vbilopav
Comment options

Answer selected by vbilopav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants