SHARE
TWEET

Untitled

a guest Mar 12th, 2011 34 Never
  1. public static string[] ReturnAllLableNames()
  2.         {
  3.             int lid = Lable.Count();
  4.  
  5.             string[] arr = new string[lid];
  6.  
  7.             Lable temp = new Lable();
  8.             int counter = 0;
  9.             for (int i = 1; i <= lid; ++i)
  10.             {
  11.                 temp = (Lable)Lable.FindByPrimaryKey(typeof (Lable), i);
  12.                 arr[counter] = (string)temp.LableName;
  13.                 ++counter;
  14.             }
  15.  
  16.             return arr;
  17.         }
RAW Paste Data
Top