public static Result <Opml> Parse(string xml) { if (string.IsNullOrWhiteSpace(xml)) { throw new ArgumentNullException($"{nameof(xml)} is null"); } var opml = new Opml(); var res = opml.LoadFromXML(xml); if (res.IsTrue) { return(Result <Opml> .True(opml)); } else { return(Result <Opml> .False(res.ExceptionObject)); } }