This commit is contained in:
Jeroen Breuer
2014-07-29 16:24:14 +02:00
parent fbf686f559
commit b7c16ee6ef
@@ -67,7 +67,7 @@ namespace Archetype.Models
foreach (var converter in converters.Where(x => x.IsConverter(properyType)))
{
// Convert the type using a found value converter
var value2 = converter.ConvertDataToSource(properyType, value, false);
var value2 = converter.ConvertSourceToObject(properyType, value, false);
// If the value is of type T, just return it
if (value2 is T)
@@ -82,4 +82,4 @@ namespace Archetype.Models
return Attempt<T>.Fail();
}
}
}
}