lundi 23 mai 2016

Find shared type among set of values

Given a passed-in IEnumerable<object>, is there any built-in method to return a best-matching base type for all the items in the IEnumerable, that handles nullable/non-nullable types and inheritance?

(I am aware that I can write my own; my question is if there is something built-in).





Aucun commentaire:

Enregistrer un commentaire