ExcelFormulaParser.Engine.CalculationChain.CalcCell.AddRelationFrom C# (CSharp) Méthode

AddRelationFrom() public méthode

public AddRelationFrom ( CalcCell other, CalcChain chain ) : CalcRelation
other CalcCell
chain CalcChain
Résultat 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;
        }