using System; using System.Runtime.Serialization; namespace Umbraco.Core.Models { /// /// Represents a UserControl file /// [Serializable] [DataContract(IsReference = true)] public class UserControl : File, IUserControl { public UserControl(string path) : this(path, (Func)null) { } internal UserControl(string path, Func getFileContent) : base(path, getFileContent) { } /// /// Indicates whether the current entity has an identity, which in this case is a path/name. /// /// /// Overrides the default Entity identity check. /// public override bool HasIdentity { get { return string.IsNullOrEmpty(Path) == false; } } } }