fix(module: table): thrown exception when property type is char (#3617)

This commit is contained in:
James Yeung 2024-01-09 07:57:35 +08:00 committed by GitHub
parent b619e4bc1a
commit 8585feb5d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ namespace AntDesign.Core.Helpers
if (typeof(IFormattable).IsAssignableFrom(sourceType))
{
var method = sourceType.GetMethod(nameof(ToString), new[] { typeof(string), typeof(IFormatProvider) });
var method = typeof(IFormattable).GetMethod(nameof(ToString), new[] { typeof(string), typeof(IFormatProvider) });
body = Expression.Call(Expression.Convert(variable, sourceType), method, parsedFormatString, Expression.Constant(CurrentCulture));
}
else