mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +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);
|
||||
}
|
||||
|
||||
var collection = property.GetValue(this) as IIniValuesCollection;
|
||||
if (collection != null)
|
||||
if (property.GetValue(this) is IIniValuesCollection collection)
|
||||
{
|
||||
var values = SplitCollectionValues(kvPropertyValue, DELIMITER);
|
||||
values = values.Where(v => !string.IsNullOrWhiteSpace(v)).ToArray();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue