What would be the difference between these two seemingly similar declarations?
When would you choose one syntax over another?
Is there any specific reason to choose one over the other?
Any performance penalties incurred for either case?
public void Import<T>(
Func<IEnumerable<T>> getFiles, Action<T> import)
where T : IFileInfo
{
// Import files retrieved through "getFiles"
}
public void Import(
Func<IEnumerable<IFileInfo>> getFiles, Action<IFileInfo> import)
{
// Import files retrieved through "getFiles"
}