От: | Sinclair | https://github.com/evilguest/ | |
Дата: | 31.01.24 11:16 | ||
Оценка: |
S> while (objType!=null && objType != typeof(object))
S> {
S> if (objType.IsGenericType &&
S> objType.GetGenericTypeDefinition() == typeof(IEnumerable<>))
S> return true;
S> objType = objType.BaseType;
S> }
S>