コード例 #1
0
        internal BuilderContext(ValidatorBuilder <TState> builder, bool threadSafe)
        {
            _hasConstraints = 0;
            _validators     = TypeDictionary <TypeValidator <TState> > .Create(builder.Types.Count);

            _threadSafe = threadSafe;
            _state      = new StateManager();

            Builder = builder;
        }
コード例 #2
0
ファイル: MoldCollection.cs プロジェクト: jonkeda/Plastic
 public T Create(TI type)
 {
     return(_types.Create(type.GetType()));
 }