Exemplo n.º 1
0
        public static bool TryGetCustomEditorType(Type targetType, out Type editorType)
        {
            if (CustomEditorsByType.TryGetValue(targetType, out editorType))
            {
                return(true);
            }

            if (targetType.IsGenericType && !targetType.IsGenericTypeDefinition)
            {
                return(customEditorsByType.TryGetValue(targetType.GetGenericTypeDefinition(), out editorType));
            }

            return(false);
        }
Exemplo n.º 2
0
 public static bool TryGetCustomEditorType(Type targetType, out Type editorType)
 {
     return(CustomEditorsByType.TryGetValue(targetType, out editorType));
 }