, .
if (typeof(T) is List<object>)
. is , , , typeof(T) List<object>. typeof(T) Type, T. ( )
if (typeof(T) == typeof(List<object>))
, , T List<object>. List<object>,
if (typeof(List<object>).IsAssignableFrom(typeof(T)))
. , , List<object> . , , List<T> . List<T>.
, . , , , . #, List<Cat> List<Mammal>, , - List<Cat>.
, drf dotctor - , , :
typeof(T).GetGenericTypeDefinition() == typeof(List<>)
, :
var deserialized = Deserialize<List<T>>(file);
, T List<Something>, List<List<Something>>, , , , .