От: | vorona | ||
Дата: | 09.09.16 11:19 | ||
Оценка: |
MethodInfo openMethod = typeof(Enumerable).GetMethods().First(m => m.Name == nameof(Enumerable.Select));
bool type = openMethod.ReturnType == typeof(IEnumerable<>);
bool token = openMethod.ReturnType.MetadataToken == typeof(IEnumerable<>).MetadataToken;