smeacham

Group.cs

May 26th, 2016
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. using Xamarin.Forms;
  8.  
  9. namespace ListViewDemoVS
  10. {
  11.     // This class contains the group-by key and a collection of items
  12.     class Group : List<ListItem>
  13.     {
  14.         public String Key { get; private set; }
  15.  
  16.         public Group(String key, List<ListItem> items)
  17.         {
  18.             Key = key;
  19.             foreach (var item in items)
  20.             {
  21.                 this.Add(item);
  22.             }
  23.         }
  24.     }
  25. }
Add Comment
Please, Sign In to add comment