mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-11-29 18:48:50 +08:00
fix(module: table): thrown exception when property type is char (#3617)
This commit is contained in:
parent
b619e4bc1a
commit
8585feb5d0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user