Esempio n. 1
0
 /// <summary>
 /// Determines whether the specified type is registered. Note that this should be used only to check if a descriptor
 /// has been registered EXACTLY. For many types a descriptor can still be created, for example through the descriptor
 /// of a base type or implemented interfaces.
 /// </summary>
 /// <typeparam name="T">The type.</typeparam>
 /// <returns></returns>
 public static bool IsTypeRegistered <T>()
 {
     return(TypeDescriptorRegistry.IsTypeRegistered(typeof(T)));
 }
Esempio n. 2
0
 /// <summary>
 /// Determines whether the specified type is registered. Note that this should be used only to check if a descriptor
 /// has been registered EXACTLY. For many types a descriptor can still be created, for example through the descriptor
 /// of a base type or implemented interfaces.
 /// </summary>
 /// <param name="t">The type.</param>
 /// <returns></returns>
 public static bool IsTypeRegistered(Type t)
 {
     return(TypeDescriptorRegistry.IsTypeRegistered(t));
 }