Advertisement
Guest User

Untitled

a guest
Mar 12th, 2011
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  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.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement