What would be the complete code for a best practice to get a list using CSOM?
A couple of related questions:
- Should we always return all the lists first, and then run a linq query to select the correct one?
- What property should we use to get the list? I would like to use the url name ( /MyList/ ) instead of Title or Guid because Title (at least theoretically) should be changable and Guid gets difficult between environments (dev/test/qa/on-premises/O365). Is there a property for this url name (without web url)
- Would the approach be the fastest in most scenarios?
I would also like to have some reasoning behind the proposed solution.