We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9b7b7e commit 3d3c28cCopy full SHA for 3d3c28c
AgileMapper/TypeConversion/ToStringConverter.cs
@@ -56,7 +56,7 @@ private static Expression GetByteArrayToBase64StringConversion(Expression source
56
57
private static Expression GetDateTimeToStringConversion(Expression sourceValue, Type nonNullableSourceType)
58
{
59
- var toStringMethod = GetToStringMethodOrNull(sourceValue.Type, typeof(IFormatProvider));
+ var toStringMethod = GetToStringMethodOrNull(nonNullableSourceType, typeof(IFormatProvider));
60
var currentCulture = Expression.Property(null, typeof(CultureInfo), "CurrentCulture");
61
var dateTimeFormat = Expression.Property(currentCulture, typeof(CultureInfo), "DateTimeFormat");
62
0 commit comments