PdfRpt.Core.PdfTable.GroupsManager.getCurrentCellValue C# (CSharp) Method

getCurrentCellValue() private static method

private static getCurrentCellValue ( IEnumerable row, string property ) : object
row IEnumerable
property string
return object
        private static object getCurrentCellValue(IEnumerable<CellData> row, string property)
        {
            var cellValue = row.FirstOrDefault(x => x.PropertyName == property);
            if (cellValue == null)
            {
                throw new InvalidOperationException(string.Format(CultureInfo.InvariantCulture, "Please include {0} property in PdfColumnsDefinitions too.", property));
            }
            var currentCellValue = cellValue.PropertyValue;
            return currentCellValue;
        }