Hi again,
I've upgraded to #D 2994. Some weirdness in tooltip overload resolution seems to be added here.
I use the collections class from iDesign which has the following method group:
public static T[ ToArray<T>(IEnumerable<T> collection)
public static T[ ToArray<T>(IEnumerator<T> iterator)
public static T[ ToArray<T>(IEnumerable<T> collection,int count)
public static T[ ToArray<T>(IEnumerator<T> iterator,int count)
public static U[ ToArray<T,U>(IEnumerable<T> collection,Converter<T,U> converter)
public static U[ ToArray<T,U>(IEnumerable<T> collection,Converter<T,U> converter,int count)
public static U[ ToArray<T,U>(IEnumerator<T> iterator,Converter<T,U> converter)
public static U[ ToArray<T,U>(IEnumerator<T> iterator,Converter<T,U> converter,int count)
But
Collection.ToArray(statSnapshot[step].Values);
gives me the last (most complex) overload.
Also, I do not get code completion beyond the above statSnapshot[step].Values,which is a ValueCollection<TKey,TValue> and should expose some members.
Likewise:
Correct:
Array.Sort(stats, delegate(ItemStats a, ItemStats b){...});
Incorrect:
Array.Sort(stats, (a, b) => ...);
This case remains showing an incorrect tooltip when lambda parameters are explicitly typed.
I've mixed them up since all of them involve mixed-arity template overloads, so I suspect a common cause.
Regards,
Simon