H3Lib/LinkedGeoPolygon.cs
/// <summary>
/// This is potentially dangerous, thus why it's
/// a private method and provided as read only.
/// </summary>
This is potentially dangerous, thus why it's
a private method and provided as read only.
This is potentially dangerous thus why it ' s a private method and provided as read only .
private ReadOnlyCollection<LinkedGeoPolygon> GetPolygons()
        {
            List<LinkedGeoPolygon> temp = new List<LinkedGeoPolygon>();
            temp.Add(this);
            var next = Next;
            while (next != null)
            {
                temp.Add(next);
                next = next.Next;
            }
            return temp.AsReadOnly();
        }
private ReadOnlyCollection < LinkedGeoPolygon > GetPolygons ( ) { List < LinkedGeoPolygon > temp = new List < LinkedGeoPolygon > ( ) ; temp . Add ( this ) ; var next = Next ; while ( next != null ) { temp . Add ( next ) ; next = next . Next ; } return temp . AsReadOnly ( ) ; }
This is potentially dangerous, thus why it's
a private method and provided as read only.
This is potentially dangerous thus why it ' s a private method and provided as read only .