PdfRpt.Core.PdfTable.GroupsManager.getCurrentCellValue C# (CSharp) 메소드

getCurrentCellValue() 개인적인 정적인 메소드

private static getCurrentCellValue ( IEnumerable row, string property ) : object
row IEnumerable
property string
리턴 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;
        }