protected IndexBuilder(IndexSecurity security) { if (security == null) { throw new ArgumentNullException(nameof(security)); } Security = security; SecurityId = security.ToSecurityId(); FillSecurityIndecies(Security); _bufferSize = _securityIndecies.Values.Distinct().Count(); }
protected IndexBuilder(IndexSecurity security) { Security = security ?? throw new ArgumentNullException(nameof(security)); SecurityId = security.ToSecurityId(); SecurityId.EnsureHashCode(); var index = 0; foreach (var innerSec in security.InnerSecurityIds) { _securityIndecies[innerSec] = index; index++; } _bufferSize = index; }
protected IndexBuilder(IndexSecurity security) { if (security == null) { throw new ArgumentNullException(nameof(security)); } Security = security; SecurityId = security.ToSecurityId(); var index = 0; foreach (var innerSec in security.InnerSecurityIds) { _securityIndecies[innerSec] = index; index++; } _bufferSize = index; }