internal static int IndexOfTypeParameter(List <ITypeParameterSymbol> tParams, ITypeSymbol t) { string name = ClassInfo.SpecialGetFullTypeNameWithTypeParameters(t); for (int i = 0; i < tParams.Count; ++i) { if (name == ClassInfo.SpecialGetFullTypeNameWithTypeParameters(tParams[i])) { return(i); } } return(-1); }