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 EmptyAsyncEnumerable() +>IAsyncEnumerable Empty() >``` >Summary: Returns an empty `System.Collections.Generic.IAsyncEnumerable`1`. > >Returns: An empty `System.Collections.Generic.IAsyncEnumerable`1`. +#### FromSingleItem +>```csharp +>IAsyncEnumerable FromSingleItem(T item) +>``` +>Summary: Converts a single item into an `System.Collections.Generic.IAsyncEnumerable`1`. +> +>Parameters:
+>     `item`  -  The item to convert.
+> +>Returns: An `System.Collections.Generic.IAsyncEnumerable`1` containing the single item.
Generated by MarkdownCodeDoc version 1.2
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 = /// /// true if this instance is default; otherwise, false. /// + [JsonIgnore] public readonly bool IsDefault => Latitude.IsEqual(0) && Longitude.IsEqual(0); /// @@ -23,8 +24,9 @@ public readonly bool Equals(CartesianCoordinate other) => Latitude.AreClose(other.Latitude) && Longitude.AreClose(other.Longitude); + /// public override readonly int GetHashCode() - => base.GetHashCode(); + => HashCode.Combine(Latitude, Longitude); /// public override readonly string ToString()