ApiParser.ApiNode.SelectMany C# (CSharp) 메소드

SelectMany() 개인적인 메소드

private SelectMany ( [ xpath ) : IEnumerable
xpath [
리턴 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}"));
 }