I Have the following code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace QQQ.Mappings
{
interface IExcess<T>
{
IEnumerable<string, T> getExcessByMaterialGroup(T[] data);
void Sort<TKey>(T[] data, Func<T, TKey> selector);
}
}
But I’m getting this error, “Using the generic type ‘System.Collections.Generic.IEnumerable’ requires ‘1’ type arguments”
You are attempting to return
IEnumerable<string, T>from getExcessByMaterialGroup.IEnumerable<T>only takes one type parameter, not two (String and T). My guess is that you want to return something likeIEnumerable<KeyValuePair<String, T>>