1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-09 22:55:42 +00:00

Specify culture when formatting

This commit is contained in:
Oliver Booth 2022-12-08 16:03:03 +00:00
parent ca0769faeb
commit 2b80c4c8c5
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
2 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,6 @@
namespace VpSharp;
using System.Globalization;
namespace VpSharp;
/// <summary>
/// Represents a set of coordinates.
@ -188,7 +190,7 @@ public readonly partial struct Coordinates : IEquatable<Coordinates>, IFormattab
/// <returns>A <see cref="string" /> representation of these coordinates.</returns>
public override string ToString()
{
return ToString("{0}");
return ToString("{0}", CultureInfo.InvariantCulture);
}
/// <summary>

View File

@ -178,7 +178,7 @@ public readonly struct Rotation : IEquatable<Rotation>, IFormattable
/// <returns>A <see cref="string" /> representation of these coordinates.</returns>
public override string ToString()
{
return ToString("{0}");
return ToString("{0}", CultureInfo.CurrentCulture);
}
/// <summary>