Noear.Snacks.ONode.load C# (CSharp) Method

load() public static method

public static load ( String ops ) : ONode
ops String
return ONode
    public static ONode load(String ops)
    {
        if (ops == null || ops.Length < 2)
                return new ONode();

            if (ops[0] == '<')
                return readXmlValue(new XmlReader(ops));
            else
                return readJsonValue(new JsonReader(ops));
    }