// ReSharper disable once UnusedMember.Global /// <summary> /// Initializes a new instance of the <see cref="SecureArray{T}"/> class. /// </summary> /// <param name="size"> /// The number of elements in the secure array. /// </param> /// <param name="type"> /// The type of secure array to initialize. /// </param> /// <remarks> /// Uses <see cref="SecureArray"/>.<see cref="SecureArray.DefaultCall"/>. /// </remarks> public SecureArray(int size, SecureArrayType type) : base(DefaultCall) { this.buf = new T[size]; this.Init(this.buf, type); }
/// <summary> /// Initializes a new instance of the <see cref="SecureArray{T}"/> class. /// </summary> /// <param name="size"> /// The number of elements in the secure array. /// </param> /// <param name="type"> /// The type of secure array to initialize. /// </param> /// <param name="call"> /// The methods that get called to secure the array. A null value /// defaults to <see cref="SecureArray"/>.<see cref="SecureArray.DefaultCall"/>. /// </param> public SecureArray(int size, SecureArrayType type, SecureArrayCall call) : base(call) { this.buf = new T[size]; this.Init(this.buf, type); }