DescendantsAndSelf() public method

public DescendantsAndSelf ( ) : IEnumerable
return IEnumerable
Beispiel #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()));
        }
Beispiel #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());
 }