public XElement ToXml() => new XElement(ElementName, new XAttribute(nameof(Path), Path), new XAttribute(nameof(Id), Id), new XAttribute(nameof(Version), Version), new XAttribute(nameof(OriginalHash), OriginalHash.ToHexString()), PoisonedHash == null ? null : new XAttribute(nameof(PoisonedHash), PoisonedHash.ToHexString()), Files.Select(f => f.ToXml()) );
public XElement ToXml() => new XElement(ElementName, new XAttribute(nameof(Path), Path), new XAttribute(nameof(OriginalHash), OriginalHash.ToHexString()), PoisonedHash == null ? null : new XAttribute(nameof(PoisonedHash), PoisonedHash.ToHexString()) );