public PatchValidator(TypeTreeCache typeTreeCache, IDictionary <Type, IValueType> valueTypes) { if (typeTreeCache == null) { throw new ArgumentNullException("typeTreeCache"); } if (valueTypes == null) { throw new ArgumentNullException("valueTypes"); } _typeTreeCache = typeTreeCache; _valueTypes = valueTypes; }
public ObjectBuilder(TypeTreeCache typeTreeCache, IDictionary <Type, IValueType> valueTypes) { if (typeTreeCache == null) { throw new ArgumentNullException("typeTreeCache"); } if (valueTypes == null) { throw new ArgumentNullException("valueTypes"); } _typeInfo = typeTreeCache.GetOrCreate <T>(); _typeTreeCache = typeTreeCache; _valueTypes = valueTypes; }