H3Lib/LinkedGeoPolygon.cs
/// <summary>
/// Count the number of polygons in a linked list
/// </summary>
Count the number of polygons in a linked list
Count the number of polygons in a linked list
private int TotalPolygons()
        {
            var count = 1;
            var next = Next;
            while (next != null)
            {
                count++;
                next = next.Next;
            }
            return count;
        }
private int TotalPolygons ( ) { var count = 1 ; var next = Next ; while ( next != null ) { count ++ ; next = next . Next ; } return count ; }
Count the number of polygons in a linked list
Count the number of polygons in a linked list