Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Mar 12th, 2011  |  syntax: C#  |  size: 0.47 KB  |  hits: 32  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.         }