Преглед изворни кода

Further fix to LoggablePropertyAttribute serialization

Frank van den Bos пре 2 година
родитељ
комит
53b101211f
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      InABox.Core/DataTable.cs

+ 2 - 2
InABox.Core/DataTable.cs

@@ -826,9 +826,9 @@ namespace InABox.Core
             {
                 writer.Write(time.Ticks);
             }
-            else if (type == typeof(LoggablePropertyAttribute) && value is LoggablePropertyAttribute lpa)
+            else if (type == typeof(LoggablePropertyAttribute))
             {
-                writer.Write(lpa.Format ?? "");
+                writer.Write((value as LoggablePropertyAttribute)?.Format ?? "");
             }
             else
             {