public static Type GetEditorForType(Type itemType) { foreach (var type in _inlineEditorTypes) { var attribute = TypeFinder.GetAttribute <InlineEditorAttribute>(type); if (attribute != null && attribute.ItemType == itemType) { return(type); } } return(null); }