예제 #1
0
        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);
        }