using System; using System.Runtime.Serialization; namespace Umbraco.Core.Models { /// /// Represents a XSLT file /// [Serializable] [DataContract(IsReference = true)] public class XsltFile : File, IXsltFile { public XsltFile(string path) : this(path, (Func) null) { } internal XsltFile(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; } } } }