7
Sono curioso di sapere se il tipo dato è chiuso versione di tipo aperto. Per esempioConfronta tipo chiuso con tipo aperto
public bool IsGenericList(Type source)
{
return (source.IsGenericType &&
/*here goes the manipulation on source type*/ == typeof(List<>));
}
Questo è ciò che avevo provato in primo luogo, ma ho pensato che non funziona perché avevo bug da qualche altra parte nel codice. Grazie comunque :) – jethro