protected void ReadEntity(CacheReader f, UxlEntityFlags flags) { if (flags.HasFlag(UxlEntityFlags.Elements)) { f.ReadList(Elements, UxlElement.Read); } if (flags.HasFlag(UxlEntityFlags.CopyFiles)) { f.ReadList(CopyFiles, r => f.ReadCopyFile()); } if (flags.HasFlag(UxlEntityFlags.ImageFiles)) { f.ReadList(ImageFiles, r => f.ReadImageFile()); } }