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

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

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