ExcelFormulaParser.Engine.CalculationChain.CalcCell.AddRelationTo C# (CSharp) Метод

AddRelationTo() публичный Метод

public AddRelationTo ( CalcCell other, CalcChain chain ) : CalcRelation
other CalcCell
chain CalcChain
Результат CalcRelation
        public CalcRelation AddRelationTo(CalcCell other, CalcChain chain)
        {
            if (_relationsTo.ContainsKey(other.Id)) return _relationsTo[other.Id];
            var rel = new CalcRelation { CalcCellId = other.Id, CalcChainId = chain.Id };
            _relationsTo.Add(other.Id, rel);
            return rel;
        }