예제 #1
0
 /// <summary>
 /// Gets the first implementation of the type specified by the type parameter, or null if no implementations found.
 /// </summary>
 /// <typeparam name="T">The type parameter to find implementation of.</typeparam>
 /// <param name="useCaching">
 /// Determines whether the type cache should be used to avoid assemblies scanning next time,
 /// when the same type(s) is requested.
 /// </param>
 /// <returns>The first found implementation of the given type.</returns>
 public static Type GetImplementation <T>(bool useCaching = false)
 {
     return(ExtensionManager.GetImplementation <T>(null, useCaching));
 }
예제 #2
0
 public static Type GetImplementation <T>()
 {
     return(ExtensionManager.GetImplementation <T>(null));
 }