예제 #1
0
 /// <summary>
 /// Get the original type. <br />
 /// When type inherits from genericType, gets the first type parameter in the genericType corresponding to the type.
 /// </summary>
 /// <typeparam name="TGot">The given type TGot</typeparam>
 /// <typeparam name="TGeneric">The generic type TGeneric</typeparam>
 /// <returns></returns>
 public static Type GetRawTypeFromGenericClass <TGot, TGeneric>() => Reflections.GetRawTypeFromGenericClass <TGot, TGeneric>();
예제 #2
0
 /// <summary>
 /// Get the original type. <br />
 /// When type inherits from genericType, gets the first type parameter in the genericType corresponding to the type.
 /// </summary>
 /// <param name="type">The given type</param>
 /// <param name="genericType">The generic type</param>
 /// <returns></returns>
 public static Type GetRawTypeFromGenericClass(Type type, Type genericType) => Reflections.GetRawTypeFromGenericClass(type, genericType);