コード例 #1
0
 public static int GetTupleElementIndex(this IFieldSymbol fieldSymbol)
 {
     Contract.Assert(fieldSymbol.ContainingType.IsTupleType);
     return(fieldSymbol.DynamicGetProperty <int>("TupleElementIndex") + 1);
 }