If you have some flexibility regarding the data structure, it would be more efficient to use an Dictionary<int, string>array for this behavior instead.
Example (if you use C # 3 or higher):
var pets = new Dictionary<int, string> {
{ 29, "Bulldog" },
{ 5, "Greyhound" }
};
Console.WriteLine(pets[5]);
:
Dictionary<int, string> pets = new Dictionary<int, string>();
pets[29] = "Bulldog";
pets[5] = "Greyhound";
Console.WriteLine(pets[5]);