public static string[] ReturnAllLableNames() { int lid = Lable.Count(); string[] arr = new string[lid]; Lable temp = new Lable(); int counter = 0; for (int i = 1; i <= lid; ++i) { temp = (Lable)Lable.FindByPrimaryKey(typeof (Lable), i); arr[counter] = (string)temp.LableName; ++counter; } return arr; }