-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Description
Input code
using System.Linq;
var a = args.Select(v => (Name: v, Value: v))
.OrderBy(kvp => kvp.Name)
.First();Erroneous output
(from v in args
select (v, v) into c
orderby c.Name
select c).First()The decompiled version is select (v, v) without the name (Name, Value) of the ValueTuple, thus the later orderby c.Name shows the error does not contain a definition for 'Name' ...
Details
- Product in use: ILSpy
- Version in use: 8.0, also tested latest CI version 8.0.0.7405.