Check out example codes for "c# check if type implements interface". It will help you in understanding the concepts better.

Code Example 1

typeof(IMyInterface).IsAssignableFrom(typeof(MyType))
  // or
typeof(MyType).GetInterfaces().Contains(typeof(IMyInterface))
  // or for a generic interface, it’s a bit different:
typeof(MyType).GetInterfaces().Any(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IMyInterface<>)

Learn ReactJs, React Native from akashmittal.com