示例#1
0
 public static IDuckTypeFactory <object> DuckFactoryAs(this Type source, Type interfaceType)
 => DuckType.GetFactoryByTypes(interfaceType, source);
示例#2
0
 public static IDuckTypeFactory <T> DuckFactoryAs <T>(this Type source) where T : class
 => DuckType.GetFactoryByTypes <T>(source);