Dev2.Util.JsonPathNode.PathsFrom C# (CSharp) Method

PathsFrom() public static method

public static PathsFrom ( ICollection nodes ) : string[]
nodes ICollection
return string[]
        public static string[] PathsFrom(ICollection nodes)
        {
            var paths = new string[nodes != null ? nodes.Count : 0];

            if (paths.Length > 0)
            {
                Debug.Assert(nodes != null);

                int i = 0;
                foreach (JsonPathNode node in nodes)
                    paths[i++] = node.Path;
            }

            return paths;
        }