示例#1
0
 /// <summary>
 /// To judge the given type is assignable to the generic type or not.
 /// </summary>
 /// <typeparam name="TGot">The given type TGot</typeparam>
 /// <typeparam name="TGeneric">The generic type TGeneric</typeparam>
 /// <returns></returns>
 public static bool IsGenericImplementation <TGot, TGeneric>() => TypeJudgment.IsGenericImplementation <TGot, TGeneric>();
示例#2
0
 /// <summary>
 /// To judge the given type is assignable to the generic type or not.
 /// </summary>
 /// <param name="type">The given type</param>
 /// <param name="genericType">The generic type</param>
 /// <returns></returns>
 public static bool IsGenericImplementation(Type type, Type genericType) => TypeJudgment.IsGenericImplementation(type, genericType);