public override UITableViewCell GetCell(UITableView tableView, Foundation.NSIndexPath indexPath)
        {
            MapListRowSource data = Items[indexPath.Row];

            MapListCell cell = (MapListCell)tableView.DequeueReusableCell(identifier);

            if (cell == null)
            {
                cell = new MapListCell();
            }

            cell.Update(data, indexPath.Row);

            return(cell);
        }
        public override UITableViewCell GetCell(UITableView tableView, Foundation.NSIndexPath indexPath)
        {
            Sample data = Items[indexPath.Row];

            BaseCell cell = (BaseCell)tableView.DequeueReusableCell(identifier);

            if (cell == null)
            {
                if (data.IsHeader)
                {
                    cell = new MapListHeaderCell();
                }
                else
                {
                    cell = new MapListCell();
                }
            }

            cell.Update(data);

            return(cell);
        }