DescendantsAndSelf() 공개 메소드

public DescendantsAndSelf ( ) : IEnumerable
리턴 IEnumerable
예제 #1
0
        private static int GetDawgNodeId(DawgNode node)
        {
            var sb = new StringBuilder();

            foreach (var node2 in node.DescendantsAndSelf())
            {
                sb.Append(node2.Char);
                sb.Append(node2.Eow ? '1' : '0');
            }
            return((int)FnvHash.GetHash(sb.ToString()));
        }
예제 #2
0
 private static int GetDawgNodeId(DawgNode node)
 {
     var sb = new StringBuilder();
     foreach (var node2 in node.DescendantsAndSelf())
     {
         sb.Append(node2.Char);
         sb.Append(node2.Eow ? '1' : '0');
     }
     return (int)FnvHash.GetHash(sb.ToString());
 }