/// <summary> /// Returns whether this collection contains the specified <paramref name="feature"/>. /// </summary> /// <param name="feature">The feature.</param> /// <returns><c>true</c> if item is found in the collection; otherwise, <c>false</c>.</returns> public bool Contains(GeoJsonFeature feature) { if (feature == null) { throw new ArgumentNullException(nameof(feature)); } return(Features.Contains(feature)); }
/// <summary> /// Adds the specified <paramref name="feature"/>. /// </summary> /// <param name="feature">The feature to be added.</param> public void Add(GeoJsonFeature feature) { if (feature == null) { throw new ArgumentNullException(nameof(feature)); } Features.Add(feature); }
/// <summary> /// Removes the first occurence of the specified <paramref name="feature"/>. /// </summary> /// <param name="feature">The feature to be removed.</param> /// <returns><c>true</c> if item is successfully removed; otherwise, <c>false</c>. This method also returns false if item was not found in the feature collection.</returns> public bool Remove(GeoJsonFeature feature) { if (feature == null) { throw new ArgumentNullException(nameof(feature)); } return(Features.Remove(feature)); }