BeerDrinkin.iOS.DiscoverBeerSearchResultsSource.GetCell C# (CSharp) Method

GetCell() public method

public GetCell ( UITableView tableView, NSIndexPath indexPath ) : UITableViewCell
tableView UITableView
indexPath NSIndexPath
return UITableViewCell
        public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
        {
            var Beer = Beers[indexPath.Row];

            var cell = tableView.DequeueReusableCell(cellIdentifier) as DiscoverBeerResultCell ?? new DiscoverBeerResultCell(cellIdentifier);

            cell.Name = Beer.Name;
            cell.Brewery = Beer?.Brewery?.Name;
            if (!string.IsNullOrEmpty(Beer.Image.MediumUrl))
            {
                cell.Image.SetImage(new NSUrl(Beer?.Image?.MediumUrl), UIImage.FromBundle("BeerDrinkin.png"));
            }
            else
            {
                cell.Image.Image = UIImage.FromBundle("BeerDrinkin.png");
            }
                          
            return cell;
        }