Esempio n. 1
0
            public static TypeInfo Create(System.Type target, DesirializeInstancePredication desirializeInstance, SerializeInstancePredication serializeInstance, ISerializationKeyTypeGetter keyTypeGetter)
            {
                Assert.IsNotNull(target);
                Assert.IsNotNull(desirializeInstance);

                return(new TypeInfo()
                {
                    Target = target,
                    DesirializeInstance = desirializeInstance,
                    SerializeInstance = serializeInstance,
                    KeyTypeGetter = keyTypeGetter,
                });
            }
Esempio n. 2
0
 public static TypeInfo Create <T>(DesirializeInstancePredication desirializeInstance, SerializeInstancePredication serializeInstance, ISerializationKeyTypeGetter keyTypeGetter)
 => Create(typeof(T), desirializeInstance, serializeInstance, keyTypeGetter);