public void SaveToplist(string toplistFilename) { toplistFilename.ThrowIfNullOrEmpty(nameof(toplistFilename)); string toplistData = ToplistBase.Serialize(_toplist); File.WriteAllText(toplistFilename, toplistData); }
internal ToplistXml(ToplistBase toplist) { toplist.ThrowIfNull(nameof(toplist)); Name = toplist.Name; Type = (int)toplist.Type; Format = (int)toplist.Format; Blocks = ConvertBlocksToXElements(toplist.Blocks); }
public ToplistWrapper(ToplistBase toplist) { _toplist = toplist.ThrowIfNull(nameof(toplist)); }