-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic Generic Types as Method<T...> #1372
Comments
This looks like a duplicate of dotnet/roslyn#5058, which was closed with this message:
|
What is Where would this be useful? |
@bondsbw I think it's effectively |
var items = ExeSql<(string, int)>("select name, age from people");
(string name, int age) = items[0]; Since that is legal today with a single type parameter, I'm not seeing anything very useful in this proposal. |
@bondsbw
u should be define lots of overload Methods. but if we can just define once time.thats will be Write less code,yes,we just need write once in One Method. |
@bondsbw |
@bondsbw
but how can i get the Types from T with argument of Tuple in TestMethod ? because I needed to construct the types objects to return; |
i found it GetGenericArguments. @bondsbw thank u,and thanks to all.
|
how about add this new Feature(syntax) like:
to instead of
The text was updated successfully, but these errors were encountered: