示例#1
0
 public static IDeserializerStorage <T> CreateLazy <T, TBuilder, TProvider>()
     where TBuilder : IDesMethodBuilderOf <T, DesExprCompilerOf <T> >, new()
     where TProvider : IDesMatchingProviderOf <T, DesExprCompilerOf <T> >, new()
 {
     LazyDeserializeMethodCache <T> .Builder = () => CreateCompiled <T, TBuilder, TProvider>();
     return(new DeserializerStorage <T>((d, r, p, v) => LazyDeserializeMethodCache <T> .Deserialize(d, r, p, v)));
 }
示例#2
0
 public static IDeserializerStorage <T> CreateLazy <T>()
 {
     LazyDeserializeMethodCache <T> .Builder = () => CreateCompiled <T>();
     return(new DeserializerStorage <T>((d, r, p, v) => LazyDeserializeMethodCache <T> .Deserialize(d, r, p, v)));
 }