2 using System.Collections.Generic;
9 private readonly HashSet<Identifier> identifiers =
new HashSet<Identifier>();
15 foreach (XElement subElement
in element.Elements())
17 identifiers.
Add(subElement.GetAttributeIdentifier(
"name", Identifier.Empty));
21 public static void Init(XElement? element)
23 if (element is
null) {
return; }
30 foreach (var
id in identifiers)
32 element.Add(
new XElement(
"Tutorial",
new XAttribute(
"name",
id.Value)));
36 public bool Contains(Identifier identifier) => identifiers.Contains(identifier);
38 public void Add(Identifier identifier) => identifiers.Add(identifier);
40 public void Remove(Identifier identifier) => identifiers.Remove(identifier);
static CompletedTutorials Instance
void Add(Identifier identifier)
static void Init(XElement? element)
void SaveTo(XElement element)
bool Contains(Identifier identifier)
void Remove(Identifier identifier)