public PocoBuilder <T> SetFormat(PocoFormat pocoFormat) { switch (pocoFormat) { case PocoFormat.Xml: extractor = new Parsely.PocoExtractor <T>(); break; case PocoFormat.Json: case PocoFormat.Poco: case PocoFormat.Markdown: case PocoFormat.Yaml: default: throw new NotSupportedException($@"{pocoFormat.ToString()} format not yet supported!"); } var result = MP.StdLib.MathUtils.Square(2); // var result = 2.0.Square(); return(this); }
public static PocoBuilder <T> Create(PocoFormat pocoFormat = PocoFormat.Json) => new PocoBuilder <T>(pocoFormat);
PocoBuilder(PocoFormat pocoFormat) => SetFormat(pocoFormat);