mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-18 09:35:48 +00:00
Type assignment change
This commit is contained in:
parent
5c06fd00d5
commit
cd9d36a51d
1 changed files with 1 additions and 2 deletions
|
|
@ -171,8 +171,7 @@ namespace ServerManagerTool.Common.Model
|
||||||
kvPropertyValue = kvPropertyValue.Substring(0, kvPropertyValue.Length - 1);
|
kvPropertyValue = kvPropertyValue.Substring(0, kvPropertyValue.Length - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
var collection = property.GetValue(this) as IIniValuesCollection;
|
if (property.GetValue(this) is IIniValuesCollection collection)
|
||||||
if (collection != null)
|
|
||||||
{
|
{
|
||||||
var values = SplitCollectionValues(kvPropertyValue, DELIMITER);
|
var values = SplitCollectionValues(kvPropertyValue, DELIMITER);
|
||||||
values = values.Where(v => !string.IsNullOrWhiteSpace(v)).ToArray();
|
values = values.Where(v => !string.IsNullOrWhiteSpace(v)).ToArray();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue