Skip to content

Commit

Permalink
Fix config bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SkySwimmer committed Oct 12, 2023
1 parent 3a6caef commit ab98802
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,17 @@ public override T Value
{
try
{
if (!(v is T) && typeof(System.Collections.ICollection).IsAssignableFrom(typeof(T)) && typeof(System.Collections.ICollection).IsAssignableFrom(v.GetType()))
{
// Convert
System.Collections.IList i = (System.Collections.IList)typeof(T).GetConstructor(new Type[0]).Invoke(new object[0]);
System.Collections.IList obA = (System.Collections.IList)v;
foreach (object o in obA)
{
i.Add(o);
}
v = i;
}
return (T)v;
}
catch
Expand Down

0 comments on commit ab98802

Please sign in to comment.