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;
 }
Beispiel #2
0
 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;
 }