I'm using SP 2013. And I have a Wiki Page Library. I try to load all items from this list. I'm using the following code:
var context = new ClientContext("SiteUrl");
context.Load(context.Site);
context.ExecuteQuery();
var list = context.Web.Lists.GetByTitle("Wiki Page Library");
context.Load(list, c=>c.ItemCount);
context.ExecuteQuery();
//it gives me actual items count
//in my case it's 9 items
//Home.aspx; About.aspx; Categories.aspx; Topic.aspx etc.
var itemsLength = list.ItemCount;
var camlQuery = @"<View Scope='All'><Query></Query></View>";
var query = new SP.CamlQuery { ViewXml = camlQuery };
var items = list.GetItems(query);
context.Load(items);
context.ExecuteQuery();
//it gives a wrong result
//only one in my case
var count = items.ToArray().Length;
And I've also checked the following caml queries:
(but unfortunately it gives me the same result)
<View Scope="RecursiveAll">
<Query>
<QueryOptions>
<ViewAttributes Scope="Recursive"/>
</QueryOptions>
</Query>
</View>
<View Scope="RecursiveAll">
<Query>
</Query>
</View>


var items = list.GetItems(CamlQuery.CreateAllItemsQuery());and check ?I've also checked the following caml queries:section. The seconds query is exactly the same withCamlQuery.CreateAllItemsQuery()