|
@@ -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
|
|
|
{
|