From bc27003eb5bbd43c2a876eac23ccff87326fcab2 Mon Sep 17 00:00:00 2001 From: Oleksandr Bezdieniezhnykh Date: Sat, 18 May 2024 18:40:13 +0300 Subject: [PATCH] fix regional format coma in double string representation one more time --- Azaion.Annotator/DTO/AnnotationInfo.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Azaion.Annotator/DTO/AnnotationInfo.cs b/Azaion.Annotator/DTO/AnnotationInfo.cs index 19e6574..765119a 100644 --- a/Azaion.Annotator/DTO/AnnotationInfo.cs +++ b/Azaion.Annotator/DTO/AnnotationInfo.cs @@ -21,15 +21,7 @@ public class AnnotationInfo Height = height; } - public override string ToString() => string.Concat(ClassNumber.ToString(), - " ", - X.ToString("F5", CultureInfo.InvariantCulture), - " ", - Y.ToString("F5", CultureInfo.InvariantCulture), - " ", - Width.ToString("F5", CultureInfo.InvariantCulture), - " ", - Height.ToString("F5", CultureInfo.InvariantCulture)); + public override string ToString() => $"{ClassNumber} {X:F5} {Y:F5} {Width:F5} {Height:F5}".Replace(',', '.'); public AnnotationInfo ToLabelCoordinates(Size canvasSize, Size videoSize) {