Ejemplo n.º 1
0
        public static JToken Offspring(this JToken oRoot, NameList oChildNames)
        {
            if (ReferenceEquals(oRoot, null))
            {
                return(null);
            }

            if (ReferenceEquals(oChildNames, null))
            {
                return(oRoot);
            }

            if (oChildNames.Count < 1)
            {
                return(oRoot);
            }

            return(oRoot.SelectToken(oChildNames.ToString(".")));
        }         // Offspring
Ejemplo n.º 2
0
 public static string StaticToString()
 {
     return(sNames.ToString());
 }