示例#1
0
 /// <summary>
 /// Determines whether the class is a subclass of another
 /// </summary>
 /// <param name="candidate">The supertype to test</param>
 /// <returns></returns>
 public bool IsSublcassOf(ClrClass candidate)
 => ReflectedElement.IsSubclassOf(candidate);
示例#2
0
 /// <summary>
 /// Determines whether the class is a subclass of another
 /// </summary>
 /// <typeparam name="T">The supertype to test</typeparam>
 /// <returns></returns>
 public bool IsSublcassOf <T>()
 => ReflectedElement.IsSubclassOf(typeof(T));
示例#3
0
 /// <summary>
 /// Determines whether a type is a subclass of the adapted type
 /// </summary>
 /// <param name="t">The type to test</param>
 /// <returns></returns>
 public bool IsSubclassOf(Type t)
 => ReflectedElement.IsSubclassOf(t);