Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-163

Missing Character in CSharp Driver Serialization Tutorial Code Sample

      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.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            rhoffman Ryan Hoffman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              12 years, 11 weeks, 3 days ago