MonoMobile.Views.ListSource.RowsInSection C# (CSharp) Method

RowsInSection() public method

public RowsInSection ( UITableView tableview, int sectionIndex ) : int
tableview UITableView
sectionIndex int
return int
		public override int RowsInSection(UITableView tableview, int sectionIndex)
		{
			if (IsRootCell || IsCollapsed)
			{
				return 1;
			}
			
			var numberOfRows = IsCollapsed ? 0 : 0;
			if (Sections.ContainsKey(sectionIndex))
			{
				numberOfRows += Sections[sectionIndex].DataContext.Count;
			}

			return Sections != null ? numberOfRows : 0;
		}