Check out example codes for "c# check if object is of any generic type". It will help you in understanding the concepts better.

Code Example 1

return list.GetType().GetGenericTypeDefinition() == typeof(List<>);

Learn ReactJs, React Native from akashmittal.com