GetPropertyArray() 공개 정적인 메소드

public static GetPropertyArray ( object inObject, string propertyName ) : object[]
inObject object
propertyName string
리턴 object[]
        /// <summary>
        /// Called by the TableView to determine how many cells to create for that particular section.
        /// </summary>
        public override int RowsInSection(UITableView tableview, int section)
        {
            if (string.IsNullOrEmpty(CellSubsections))
            {
                return(dataArray.Count());
            }

            else
            {
                return(Util.GetPropertyArray(this.dataArray[section], CellSubsections).Count());
            }
        }
        public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
        {
            var cell = tableView.DequeueReusableCell(CellID);

            if (cell == null)
            {
                cell = new UITableViewCell(cellStyle, CellID);
            }

            object l;

            if (string.IsNullOrEmpty(CellSubsections))
            {
                l = dataArray.ElementAt(indexPath.Row);
            }

            else
            {
                l = Util.GetPropertyArray(dataArray[indexPath.Section], CellSubsections).ElementAt(indexPath.Row);
            }

            if (cell.TextLabel != null)
            {
                cell.TextLabel.Text = Util.GetPropertyValue(l, CellTextLabelMember);
            }

            if (cell.DetailTextLabel != null)
            {
                cell.DetailTextLabel.Text = Util.GetPropertyValue(l, CellDetailTextLabelMember);
                //cell.DetailTextLabel.BackgroundColor = UIColor.Purple;
            }
            UIView bg = new UIView(cell.Frame);

            //bg.BackgroundColor = UIColor.Purple;
            cell.BackgroundView = bg;
            cell.Accessory      = cellAccessory;
            //cell.BackgroundColor = UIColor.Purple;
            return(cell);
        }