A helper class for dumping nested property values
        // Public Methods (1)
        /// <summary>
        /// The data to render.
        /// </summary>
        /// <returns></returns>
        public IEnumerable<IList<CellData>> Rows()
        {
            if (_listOfRows == null) yield break;

            foreach (var item in _listOfRows)
            {
                var list = new DumpNestedProperties().DumpPropertyValues(item, string.Empty, _dumpLevel);
                yield return list;
            }
        }
示例#2
0
 private void processNormalProperties(ICollection<CellData> list, object columnObject)
 {
     var dataList = new DumpNestedProperties().DumpPropertyValues(columnObject, string.Empty, _dumpLevel);
     foreach (var item in dataList)
     {
         if (item == null) continue;
         list.Add(item);
     }
 }