fix(module: statistic): countdown format incorrectly when publish with trimming (#2943)

This commit is contained in:
James Yeung 2022-12-14 16:20:15 +08:00 committed by GitHub
parent 59db656a16
commit d279796e69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Linq.Expressions;
using System.Reflection;
@ -7,7 +8,12 @@ using AntDesign.Core.Reflection;
namespace AntDesign.Core.Helpers
{
#if NETSTANDARD2_1
internal static class Formatter<T>
#else
internal static class Formatter<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>
#endif
{
private static readonly Lazy<Func<T, string, string>> _formatFunc = new Lazy<Func<T, string, string>>(GetFormatLambda, true);