[DOCS-5850] Comment on: "primer/query.txt" Created: 15/Jul/15  Updated: 03/Nov/17  Resolved: 15/Dec/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Unassigned
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 7 SP1, Visual Studio 2012, C#, .NET 4.6

Location: https://docs.mongodb.org/getting-started/csharp/query/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36
Referrer: https://docs.mongodb.org/getting-started/csharp/insert/
Screen Resolution: 1920 x 1080
repo: docs
source: query


Participants:
Days since reply: 7 years, 9 weeks ago

 Description   

result.Count().Should().Be(1959);

Count is not a method, it is a Property. So this will not compile. It should be written like so:

result.Count.Should().Be(1959);



 Comments   
Comment by Kay Kim (Inactive) [ 15/Dec/16 ]

Added note that using LINQ extension method Count()

Generated at Thu Feb 08 07:51:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.