/// <summary> /// Creates the object pool. /// </summary> /// <returns>The object pool.</returns> private static Pooling.ObjectPool <NullableBooleanValidator> CreatePool() { Pooling.ObjectPool <NullableBooleanValidator> pool = null; // ReSharper disable once AccessToModifiedClosure pool = new Pooling.ObjectPool <NullableBooleanValidator>(() => new NullableBooleanValidator(pool), 20); return(pool); }
/// <summary> /// Creates the object pool. /// </summary> /// <returns>The object pool.</returns> private static Pooling.ObjectPool <NullableUnsignedNumericValidator <T> > CreatePool() { Pooling.ObjectPool <NullableUnsignedNumericValidator <T> > pool = null; // ReSharper disable once AccessToModifiedClosure pool = new Pooling.ObjectPool <NullableUnsignedNumericValidator <T> >(() => new NullableUnsignedNumericValidator <T>(pool), 20); return(pool); }
/// <summary> /// Initializes a new instance of the <see cref="NullableUnsignedNumericValidator{T}" /> class. /// </summary> /// <param name="pool">The object pool to use.</param> internal NullableUnsignedNumericValidator(Pooling.ObjectPool <NullableUnsignedNumericValidator <T> > pool) { Pool = pool; }
/// <summary> /// Initializes a new instance of the <see cref="NullableBooleanValidator" /> class. /// </summary> /// <param name="pool">The object pool to use.</param> internal NullableBooleanValidator(Pooling.ObjectPool <NullableBooleanValidator> pool) { Pool = pool; }
/// <summary> /// Initializes a new instance of the <see cref="UnsignedNumericValidator{T}" /> class. /// </summary> /// <param name="pool">The object pool to use.</param> internal UnsignedNumericValidator(Pooling.ObjectPool <UnsignedNumericValidator <T> > pool) { Pool = pool; }
/// <summary> /// Initializes a new instance of the <see cref="NullableDateTimeValidator" /> class. /// </summary> /// <param name="pool">The object pool to use.</param> internal NullableDateTimeValidator(Pooling.ObjectPool <NullableDateTimeValidator> pool) { Pool = pool; }
/// <summary> /// Initializes a new instance of the <see cref="NumericValidator{T}" /> class. /// </summary> /// <param name="pool">The object pool to use.</param> internal NumericValidator(Pooling.ObjectPool <NumericValidator <T> > pool) { Pool = pool; }
/// <summary> /// Initializes a new instance of the <see cref="StringValidator" /> class. /// </summary> /// <param name="pool">The object pool to use.</param> internal StringValidator(Pooling.ObjectPool <StringValidator> pool) { Pool = pool; }
/// <summary> /// Initializes a new instance of the <see cref="DateTimeValidator" /> class. /// </summary> /// <param name="pool">The object pool to use.</param> internal DateTimeValidator(Pooling.ObjectPool <DateTimeValidator> pool) { Pool = pool; }
/// <summary> /// Initializes a new instance of the <see cref="ClassValidator{T}" /> class utilizing an object pool for re-use. /// </summary> /// <param name="pool">The object pool to use.</param> internal ClassValidator(Pooling.ObjectPool <ClassValidator <T> > pool) { Pool = pool; }
/// <summary> /// Initializes a new instance of the <see cref="BooleanValidator" /> class. /// </summary> /// <param name="pool">The object pool to use.</param> internal BooleanValidator(Pooling.ObjectPool <BooleanValidator> pool) { Pool = pool; }