C# Class Rebel.Cms.Web.PropertyEditorExtensions

Mostra file Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
GetPropertyEditor ( this factory, string id ) : PropertyEditorMetadata>.Lazy

Returns a property editor from the property editor factory using a string id which must parse to a Guid

GetPropertyEditor ( PropertyEditorMetadata>.this propertyEditors, System.Guid id ) : PropertyEditorMetadata>.Lazy

Returns a property editor definition based on a property editor id

Private Methods

Method Description
ToPropertyEditorDefinitions ( this props ) : PropertyEditorMetadata>>.IEnumerable

Converts a list of real property editors to property editor definitions

TODO: This is a helper class which is used for tests and demo data, this may not be required in the future except for unit tests

Method Details

GetPropertyEditor() public static method

Returns a property editor from the property editor factory using a string id which must parse to a Guid
public static GetPropertyEditor ( this factory, string id ) : PropertyEditorMetadata>.Lazy
factory this
id string
return PropertyEditorMetadata>.Lazy

GetPropertyEditor() public static method

Returns a property editor definition based on a property editor id
public static GetPropertyEditor ( PropertyEditorMetadata>.this propertyEditors, System.Guid id ) : PropertyEditorMetadata>.Lazy
propertyEditors PropertyEditorMetadata>.this
id System.Guid
return PropertyEditorMetadata>.Lazy