Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public static PocoBuilder <T> Create(PocoFormat pocoFormat = PocoFormat.Json) => new PocoBuilder <T>(pocoFormat);
Exemplo n.º 3
0
 PocoBuilder(PocoFormat pocoFormat) => SetFormat(pocoFormat);