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); }
public static bool TryGetCustomEditorType(Type targetType, out Type editorType) { return(CustomEditorsByType.TryGetValue(targetType, out editorType)); }