mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-09 22:55:42 +00:00
fix: fix string formatting of Coordinates when given null provider
This commit is contained in:
parent
f6a68ad4cd
commit
6cca6e6072
@ -216,7 +216,7 @@ public readonly partial struct Coordinates : IEquatable<Coordinates>, IFormattab
|
||||
/// <returns>A <see cref="string" /> representation of these coordinates.</returns>
|
||||
public string ToString(string? format, IFormatProvider? formatProvider = null)
|
||||
{
|
||||
format ??= "{0}";
|
||||
format ??= "0";
|
||||
return Serializer.Serialize(this, format, formatProvider ?? CultureInfo.InvariantCulture);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user