I am trying to get the document library from my SharePoint 2010 site.
Let's say, my Document library name is 'Proposals' and Site is 'Http://sok:1234' .
I used the code like,
SPDocumentLibrary doclib = (SPDocumentLibrary)web.Lists["http://sok:1234/Proposals"];
Does it look correct?