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