[DOCS-163] Missing Character in CSharp Driver Serialization Tutorial Code Sample Created: 14/Mar/12  Updated: 30/Oct/23  Resolved: 14/Mar/12

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Minor - P4
Reporter: Ryan Hoffman Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: c#, documentation, driver
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 11 years, 49 weeks ago

 Description   

http://www.mongodb.org/display/DOCS/CSharp+Driver+Serialization+Tutorial#CSharpDriverSerializationTutorial-SelectinganIdGeneratortouseforanIdfieldorproperty

In the section "Selecting an IdGenerator to use for an Id field or property" there is a code sample that is missing a character. Without it, the code does not compile. Here is the original code:

BsonSerializer.RegisterIdGenerator(
typeof(Guid),
ComGuidGenerator.Instance
);

Here is the corrected code:

BsonSerializer.RegisterIdGenerator(
typeof(Guid),
CombGuidGenerator.Instance
);

Notice on the 3rd line, the "b" in "Comb" is missing: Com[b]GuidGenerator.



 Comments   
Comment by Sam Kleinman (Inactive) [ 14/Mar/12 ]

Robert, could you take a look at this and either make the required correction/clarrification or reassign it to someone who can?

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