C# Класс FullInspector.Internal.PropertyEditorTools

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
TryCreateEditor ( Type editedType, Type editorType, ICustomAttributeProvider attributes, bool forceInherit ) : IPropertyEditor

Attempts to create a property editor for the given edited data type from the given editor type.

Приватные методы

Метод Описание
CanEdit ( Type dataType, CustomPropertyEditorAttribute propertyTypeAttribute ) : bool

Returns true if the given dataType matches the given propertyType. If the dataType is generic and the propertyType is a generic definition, then the propertyType will be instantiated with the same generic arguments as dataType.

TryCreateInstance ( Type editorType, Type usedEditedType, Type actualEditedType, ICustomAttributeProvider attributes, IPropertyEditor &editor ) : bool

Creates a new instance of the given editorType. It is assumed that editorType extends IPropertyEditor.

TryCreateSpecificEditor ( Type usedEditedType, Type actualEditedType, Type editorType, ICustomAttributeProvider attributes ) : IPropertyEditor

Attempt to create a new IPropertyEditor instance.

Описание методов

TryCreateEditor() публичный статический Метод

Attempts to create a property editor for the given edited data type from the given editor type.
public static TryCreateEditor ( Type editedType, Type editorType, ICustomAttributeProvider attributes, bool forceInherit ) : IPropertyEditor
editedType System.Type The type that is being edited.
editorType System.Type The editor type.
attributes ICustomAttributeProvider /// The attributes that were specified for the type. ///
forceInherit bool /// Should inheritance behavior be forced? The expected value is false. ///
Результат IPropertyEditor