In the code samples above, I think there are HTML italic tags that are being displayed as HTML instead of interpreted.
Currently, the code reads:
SPList list = siteCollection.<i>AllWebs</i>["<i>Site_Name</i>"].Lists["<i>List_Name</i>"];
However, I am pretty sure it should be more like this:
SPList list = siteCollection.AllWebs[YourSiteNameHere].Lists[YourListNameHere];