internal BuilderContext(ValidatorBuilder <TState> builder, bool threadSafe) { _hasConstraints = 0; _validators = TypeDictionary <TypeValidator <TState> > .Create(builder.Types.Count); _threadSafe = threadSafe; _state = new StateManager(); Builder = builder; }
public T Create(TI type) { return(_types.Create(type.GetType())); }