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