예제 #1
0
        public ListBuilder(int size, IPropertyNamer propertyNamer, IReflectionUtil reflectionUtil)
        {
            this.size           = size;
            this.propertyNamer  = propertyNamer;
            this.reflectionUtil = reflectionUtil;

            mainList = new T[size];

            declarations = new DeclarationQueue <T>(size);

            ScopeUniqueRandomGenerator = new UniqueRandomGenerator();
        }
예제 #2
0
        public ListBuilder(int size, IPropertyNamer propertyNamer, IReflectionUtil reflectionUtil, BuilderSettings builderSettings)
        {
            this.Capacity       = size;
            this.propertyNamer  = propertyNamer;
            this.reflectionUtil = reflectionUtil;
            BuilderSettings     = builderSettings;

            mainList = new T[size];

            declarations = new DeclarationQueue <T>(size);

            ScopeUniqueRandomGenerator = new UniqueRandomGenerator();
        }