Rebel.Cms.Web.PropertyEditorExtensions.GetPropertyEditor C# (CSharp) Method

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
        public static Lazy<PropertyEditor, PropertyEditorMetadata> GetPropertyEditor(this IPropertyEditorFactory factory, string id)
        {
            Guid propEditorId;
            if (!Guid.TryParse(id, out propEditorId))
                throw new InvalidCastException("The id specified is not a valid GUID");
            return factory.GetPropertyEditor(propEditorId);
        }

Same methods

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