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
public static string StaticToString() { return(sNames.ToString()); }