Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit 7dbc8fd

Browse files
committed
2 parents 892cefc + 8837119 commit 7dbc8fd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Loader/Standalone/StandaloneConfigHandler.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ public object StringToConfigValue(string value, Type elementType)
7373
return bool.Parse(value);
7474
else if (elementType == typeof(int))
7575
return int.Parse(value);
76-
else
76+
else if (elementType == typeof(float))
77+
return float.Parse(value);
78+
else if (elementType.IsEnum)
79+
return Enum.Parse(elementType, value);
80+
else
7781
return value;
7882
}
7983

0 commit comments

Comments
 (0)