diff --git a/docs/CodeDoc/Atc/Atc.Factories.md b/docs/CodeDoc/Atc/Atc.Factories.md index c639e18c..e7f937ac 100644 --- a/docs/CodeDoc/Atc/Atc.Factories.md +++ b/docs/CodeDoc/Atc/Atc.Factories.md @@ -16,11 +16,21 @@ Provides factory methods for creating instances of `System.Collections.Generic.I ### Static Methods -#### EmptyAsyncEnumerable +#### Empty >```csharp ->IAsyncEnumerable<T> EmptyAsyncEnumerable() +>IAsyncEnumerable<T> Empty() >``` ><b>Summary:</b> Returns an empty `System.Collections.Generic.IAsyncEnumerable`1`. > ><b>Returns:</b> An empty `System.Collections.Generic.IAsyncEnumerable`1`. +#### FromSingleItem +>```csharp +>IAsyncEnumerable<T> FromSingleItem(T item) +>``` +><b>Summary:</b> Converts a single item into an `System.Collections.Generic.IAsyncEnumerable`1`. +> +><b>Parameters:</b><br> +> `item` - The item to convert.<br /> +> +><b>Returns:</b> An `System.Collections.Generic.IAsyncEnumerable`1` containing the single item. <hr /><div style='text-align: right'><i>Generated by MarkdownCodeDoc version 1.2</i></div> diff --git a/docs/CodeDoc/Atc/IndexExtended.md b/docs/CodeDoc/Atc/IndexExtended.md index 25ac379a..676305ec 100644 --- a/docs/CodeDoc/Atc/IndexExtended.md +++ b/docs/CodeDoc/Atc/IndexExtended.md @@ -4395,7 +4395,8 @@ - [AsyncEnumerableFactory](Atc.Factories.md#asyncenumerablefactory) - Static Methods - - EmptyAsyncEnumerable() + - Empty() + - FromSingleItem(T item) ## [Atc.Helpers](Atc.Helpers.md) diff --git a/src/Atc/Structs/CartesianCoordinate.cs b/src/Atc/Structs/CartesianCoordinate.cs index 7e3b4c10..628dd650 100644 --- a/src/Atc/Structs/CartesianCoordinate.cs +++ b/src/Atc/Structs/CartesianCoordinate.cs @@ -13,6 +13,7 @@ public record struct CartesianCoordinate(double Latitude = 0, double Longitude = /// <value> /// <c>true</c> if this instance is default; otherwise, <c>false</c>. /// </value> + [JsonIgnore] public readonly bool IsDefault => Latitude.IsEqual(0) && Longitude.IsEqual(0); /// <summary> @@ -23,8 +24,9 @@ public readonly bool Equals(CartesianCoordinate other) => Latitude.AreClose(other.Latitude) && Longitude.AreClose(other.Longitude); + /// <inheritdoc /> public override readonly int GetHashCode() - => base.GetHashCode(); + => HashCode.Combine(Latitude, Longitude); /// <inheritdoc /> public override readonly string ToString()