[DOCS-9375] Comment on: "primer/client.txt" Created: 23/Nov/16 Updated: 01/Dec/16 Resolved: 01/Dec/16 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | primer |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Docs Collector User (Inactive) | Assignee: | Allison Reinheimer Moore |
| Resolution: | Done | Votes: | 0 |
| Labels: | collector-298ba4e7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Win 7 Enterprise, VS 2013 Location: https://docs.mongodb.com/getting-started/csharp/client/#csharp-download-connect |
||
| Participants: | |
| Days since reply: | 7 years, 10 weeks, 6 days ago |
| Story Points: | 0.25 |
| Description |
|
Hi, I'm supposed to use _client = new MongoClient(); Upon rebuilding my code, I'm getting "Invalid expression term 'protected'. How do i resolve this? my test code:
Thanks in advance for your help, |
| Comments |
| Comment by Allison Reinheimer Moore [ 01/Dec/16 ] |
|
Hi Tien Le, Sorry for the delay on your MongoDB question about the C# driver [1]. Having talked with our engineers, protected static fields need to be declared in the class and not inside a method, which is why you're getting the error. You could alternatively use local variables. If you have other questions with your code, the best place to ask them is probably the MongoDB User Google Group. If you find an issue specifically with the docs, do please file another Jira ticket! Thanks so much! |
| Comment by Allison Reinheimer Moore [ 01/Dec/16 ] |
|
To Allison for grooming. |