16 public static XNamespace
NS =
"http://ikvm.net/schemas/mapxml";
30 public static Scope ReadScope(
string value) => value !=
null ? (Enum.TryParse<
Scope>(value,
true, out var v) ? v :
throw new MapXmlException($
"Invalid scope value '{value}'.")) : 0;
37 public static MethodAttributes
ReadMethodAttributes(
string value) => value !=
null ? value.Split(
new char[] {
' ' }, StringSplitOptions.RemoveEmptyEntries).Aggregate((MethodAttributes)0, (i, j) => i | (Enum.TryParse<MethodAttributes>(j,
true, out var v) ? v :
throw new MapXmlException($
"Invalid attributes value '{j}'."))) : 0;
44 public Root
Read(XDocument document)
46 return Read(document.Root);
54 public Root
Read(XElement element)
56 return Root.Read(element);