|
|
|
@ -3,6 +3,7 @@ |
|
|
|
// Copyright(c) 2020 SimonG. All Rights Reserved. |
|
|
|
// Copyright(c) 2020 SimonG. All Rights Reserved. |
|
|
|
|
|
|
|
|
|
|
|
using System; |
|
|
|
using System; |
|
|
|
|
|
|
|
using System.Collections; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.IO; |
|
|
|
using System.IO; |
|
|
|
using System.Linq; |
|
|
|
using System.Linq; |
|
|
|
@ -88,6 +89,12 @@ namespace GBase.DataHandling |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
|
|
|
|
|
|
|
|
IEnumerable<string> values = valueElements.Select(v => v.Value); |
|
|
|
IEnumerable<string> values = valueElements.Select(v => v.Value); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (typeof(TProperty) != typeof(string) && typeof(TProperty).GetInterfaces().Contains(typeof(IEnumerable))) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return null; //FixMe: Implement handling for IEnumerables |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return values.Select(value => (TProperty)Convert.ChangeType(value, typeof(TProperty))).ToList(); |
|
|
|
return values.Select(value => (TProperty)Convert.ChangeType(value, typeof(TProperty))).ToList(); |
|
|
|
}, _cancellationToken); |
|
|
|
}, _cancellationToken); |
|
|
|
} |
|
|
|
} |
|
|
|
|