Files
Umbraco-CMS/src/Umbraco.Core/PropertyEditors/EditorModel`T.cs
Morten@Thinkpad-X220 dc1689bdf2 Removing PropertyValues-method from Content and Media and making it an extension method instead.
Adding the PropertyEditor model as internal to slowly adopt it using a slightly different model approach then in v5.
Minor refactoring of IEntity/Entity.
2012-10-05 11:03:08 -02:00

27 lines
1.0 KiB
C#

namespace Umbraco.Core.PropertyEditors
{
/// <summary>
/// An abstract class representing the model to render a Property Editor's content editor with PreValues
/// </summary>
/// <typeparam name="TPreValueModel">The type of the PreValue model.</typeparam>
/// <typeparam name="TValueModel"> </typeparam>
internal abstract class EditorModel<TValueModel, TPreValueModel> : EditorModel<TValueModel>
where TValueModel : IValueModel, new()
where TPreValueModel : PreValueModel
{
/// <summary>
/// Constructor
/// </summary>
/// <param name="preValues">The pre value options used to construct the editor</param>
protected EditorModel(TPreValueModel preValues)
{
PreValueModel = preValues;
}
/// <summary>
/// The pre value options used to configure the editor
/// </summary>
/// <value>The pre value model.</value>
public TPreValueModel PreValueModel { get; protected internal set; }
}
}