ApiParser.ApiNode.SelectMany C# (CSharp) Method

SelectMany() private method

private SelectMany ( [ xpath ) : IEnumerable
xpath [
return IEnumerable
        private IEnumerable<ApiNode> SelectMany([NotNull] string xpath)
        {
            var nodes = node.SelectNodes(XPath.Resolve(xpath));
            return nodes?.Select(Wrap) ?? new ApiNode[ 0 ];
        }

Usage Example

示例#1
0
 private static ApiNode[] PickExample([NotNull] ApiNode details, [NotNull] string type)
 {
     return(details.SelectMany($@"div.subsection/pre.codeExample{type}"));
 }