public static ICollection<T> ComplexMapper<TS, T>(this ICollection<TS> source, ICollection<T> target)
{
foreach (var item in target)
{
source.Add(
// And now I'm stuck because I can't create 'new()' of T because it does not have a new() keyword
);
}
}
public static ICollection<T> ComplexMapper<TS, T>(this ICollection<TS> source, ICollection<T> target)
{
foreach (var item in target)
{
source.Add(
// And now I'm stuck because I can't create 'new()' of T because it does not have a new() keyword
);
}
}