/* Function: AddLinkedFile */ public void AddLinkedFile(Path file, Config.PropertyLocation propertyLocation, PageType type = PageType.All) { #if DEBUG if (file.IsRelative) { throw new Exception("Paths passed to AddLinkedFile() must be absolute."); } #endif if (links == null) { links = new List <LinkStatement>(); } LinkStatement entry = new LinkStatement(); entry.Type = type; entry.File = file; entry.PropertyLocation = propertyLocation; links.Add(entry); }
public bool HasSameProperties(LinkStatement other) { return(Type == other.Type && File == other.File); }