Umbraco.Belle.System.PropertyEditors.PropertyEditor.PropertyEditor C# (CSharp) Method

PropertyEditor() private method

The constructor will setup the property editor based on the attribute if one is found
private PropertyEditor ( ) : System
return System
        internal PropertyEditor()
        {
            StaticallyDefinedValueEditor = new ValueEditor();
            StaticallyDefinedPreValueEditor = new PreValueEditor();

            //assign properties based on the attribute if it is found
            var att = GetType().GetCustomAttribute<PropertyEditorAttribute>(false);
            if (att != null)
            {
                Id = Guid.Parse(att.Id);
                Name = att.Name;

                StaticallyDefinedValueEditor.ValueType = att.ValueType;
                StaticallyDefinedValueEditor.View = att.EditorView;
                StaticallyDefinedPreValueEditor.View = att.PreValueEditorView;
            }
        }