mirror of
https://gitee.com/csharpui/CPF.git
synced 2026-06-25 14:54:01 +08:00
初始化
This commit is contained in:
15
CPF.Windows/Json/Formatter/Serializer/FormattingProvider.cs
Normal file
15
CPF.Windows/Json/Formatter/Serializer/FormattingProvider.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace CPF.Windows.Json.Serializer
|
||||
{
|
||||
internal class FormattingProvider<T>
|
||||
{
|
||||
internal static Action<T, JsonSerializerHandler> Get = FormatterFind<T>.Find();
|
||||
|
||||
#if !Net4
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
#endif
|
||||
internal static void Convert(T type, JsonSerializerHandler handler) => Get(type, handler);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user