protected override IBranch GetExpandedBranch(int index) { if (index < ElementCount) { var mfm = GetElement(index) as MappingModificationFunctionMapping; if (mfm != null) { if (mfm.ModificationFunctionType == ModificationFunctionType.Delete) { _expandedBranches[index] = new ParametersBranch(mfm, GetColumns()); } else { var branchList = new ArrayList(2); branchList.Add(new ParametersBranch(mfm, GetColumns())); branchList.Add(new ResultBindingsBranch(mfm, GetColumns())); _expandedBranches[index] = new AggregateBranch(branchList, 0); } return(_expandedBranches[index]); } } return(null); }
protected override IBranch GetExpandedBranch(int index) { if (index < ElementCount) { var mfm = GetElement(index) as MappingModificationFunctionMapping; if (mfm != null) { if (mfm.ModificationFunctionType == ModificationFunctionType.Delete) { _expandedBranches[index] = new ParametersBranch(mfm, GetColumns()); } else { var branchList = new ArrayList(2); branchList.Add(new ParametersBranch(mfm, GetColumns())); branchList.Add(new ResultBindingsBranch(mfm, GetColumns())); _expandedBranches[index] = new AggregateBranch(branchList, 0); } return _expandedBranches[index]; } } return null; }