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