Get items from sharepoint list

private ArrayList GetServerList()
{
ArrayList sNames = new ArrayList();
Guid id = new Guid(“46089E30-FCD1-45C9-9437-454754C5058D”);
SPSite SiteCol = new SPSite(id);
SPList splist = SiteCol.AllWebs[“”].Lists[“Servers”];

SPQuery oQuery = new SPQuery();
oQuery.Query = “” +
“True”;
SPListItemCollection listItems = splist.GetItems(oQuery);

foreach (SPListItem listitem in listItems)
{
sNames.Add(listitem[“ServerName”].ToString());
//string test = listitem[“ServerName”].ToString();
}
return sNames;
}