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;
        }