Trim spaces from a split list in GetValueConverter

This commit is contained in:
Bogdan 2023-07-23 05:02:18 +03:00
parent 1989174801
commit 7d77b1fbe5

View file

@ -241,7 +241,7 @@ private static Func<object, object> GetValueConverter(Type propertyType)
}
else
{
return fieldValue.ToString().Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
return fieldValue.ToString().Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Select(v => v.Trim());
}
};
}