Closed msalvexx closed 3 years ago
It will be nice for legibility if we can use ActLike() method from Tuples, converting this code example from:
var account = new { Id = "valid_id", Name = "valid_name", Email = "valid_email@mail.com", Password = "valid_password" }.ActLike<IAccount>();
To this:
var account = ( Id: "valid_id", Name: "valid_name", Email: "valid_email@mail.com", Password: "valid_password" ).ActLike<IAccount>();
I am not sure if we are able to do this, because C# has some limitations on using Tuples, but it will be nice if we can have this kind of feature :heart_eyes:
Unfortunately, Tuple names are only known at compile time, so nothing I can do.
Sadly, but I was already expecting this answer Thanks for your comment
It will be nice for legibility if we can use ActLike() method from Tuples, converting this code example from:
To this:
I am not sure if we are able to do this, because C# has some limitations on using Tuples, but it will be nice if we can have this kind of feature :heart_eyes: