extension d'un type par un IEnumerable
Bonjour,
Je vois cet appel de fonction
Code:
1 2 3 4
|
var infoAffaireDto = _serviceOperation.GetHistoSO(operation.Numero).ToInformationProduitDCG()
public static IEnumerable<InformationProduitDCG> ToInformationProduitDCG(this IEnumerable<HistoSO> listHistoSource) |
La méthode GetHistoSO renvoie un IEnumerable<HistoSO>.
D'après la défintion que l'on voir la méthode ToInformationProduitDCG() etend un IEnumerable<HistoSO>.
Ma question est la suivante :
IEnumerable<HistoSO>. n'est pas un type , seul HistoSO en est un .
Pourquoi la signature de la méthode ToInformationProduitDCG() est elle correcte dans ce cas ?
Merci beaucoup de votre réponse.