Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1. List<dbItem> dbList = new List<dbItem>();
  2.  
  3.     public class dbItem
  4.     {
  5.         public string key;
  6.         public string value;
  7.     }
  8.  
  9.     private int FindIndexValueOfTitle(string bilonlineCol, List<dbItem> dbList)
  10.     {
  11.         //Leta igenom lista från BilOnlines databas för att hitta indexvärde för col titel
  12.         return dbList.FindIndex();
  13.         throw new NotImplementedException();
  14.     }
  15.  
  16.     while (postReader.Read())
  17.     {
  18.         dbItem item = new dbItem();
  19.         item.key = postReader.GetName(i);
  20.         item.value = postReader.GetValue(i).ToString();
  21.         dbList.Add(item);
  22.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement