I want to Map a ValueTuple to a class using reflection.
Documentation says that there is a Attribute attached to ValueTuple with parameters names (others than Item1, Item2, etc...) but I can't see any Attribute.
Disassembly shows nothing.
What's happens?
Example:
public static T ToStruct<T, T1,T2>(this ValueTuple<T1,T2> tuple) where T : struct
Via reflection can't get Item1, Item2 names to match with T fields via reflection.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…