ExcelFormulaParser.Engine.CalculationChain.CalcCell.AddRelationTo C# (CSharp) Method

AddRelationTo() public method

public AddRelationTo ( CalcCell other, CalcChain chain ) : CalcRelation
other CalcCell
chain CalcChain
return 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;
        }