Skip to content

Commit c69e656

Browse files
committed
CSHARP-938: Added some missing doc comments in MongoDB.Driver.
1 parent 11ae1da commit c69e656

20 files changed

+49
-20
lines changed

Docs/Api/CSharpDriverDocs.shfbproj

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
99
<SchemaVersion>2.0</SchemaVersion>
1010
<ProjectGuid>{cf31cff3-1925-457c-8775-e08bcd39e49f}</ProjectGuid>
11-
<SHFBSchemaVersion>1.9.5.0</SHFBSchemaVersion>
11+
<SHFBSchemaVersion>1.9.9.0</SHFBSchemaVersion>
1212
<!-- AssemblyName, Name, and RootNamespace are not used by SHFB but Visual
1313
Studio adds them anyway -->
1414
<AssemblyName>Documentation</AssemblyName>
@@ -29,21 +29,22 @@
2929
<HelpTitle>MongoDB C# Driver API Documentation</HelpTitle>
3030
<NamespaceSummaries>
3131
<NamespaceSummaryItem name="MongoDB.Bson" isDocumented="True">The MongoDB.Bson top level namespace and its child namespaces contain the classes for managing Bson data. The top level MongoDB.Bson namespace contains the classes that represent all the basic Bson Types.</NamespaceSummaryItem>
32-
<NamespaceSummaryItem name="MongoDB.Bson.IO" isDocumented="True">The MongoDB.Bson.IO namespace contains the types that allow reading and writing of Bson data.</NamespaceSummaryItem>
33-
<NamespaceSummaryItem name="MongoDB.Bson.Serialization" isDocumented="True">The MongoDB.Bson.Serialization namespace contains the types used in the serialization and deserialization of Bson data. It also contains the base interfaces to be implemented by the actual serializers.</NamespaceSummaryItem>
34-
<NamespaceSummaryItem name="(global)" isDocumented="False" />
35-
<NamespaceSummaryItem name="MongoDB.Bson.Serialization.Attributes" isDocumented="True">The MongoDB.Bson.Serialization.Attributes namespace contains the Attributes used to control Bson serialization/deserialization.</NamespaceSummaryItem>
36-
<NamespaceSummaryItem name="MongoDB.Bson.Serialization.Conventions" isDocumented="True">The various conventions used during serialization/deserialization of Bson data are represented by the types in the MongoDB.Bson.Serialization.Conventions namespace.</NamespaceSummaryItem>
37-
<NamespaceSummaryItem name="MongoDB.Bson.Serialization.IdGenerators" isDocumented="True">The various id generators used in the serialization/deserialization of Bson data are represented in this namespace.</NamespaceSummaryItem>
38-
<NamespaceSummaryItem name="MongoDB.Bson.Serialization.Options" isDocumented="True">The MongoDB.Bson.Serialization.Options namespace contains the classes that represent the serialization options for specific types such as DateTime, Document etc.</NamespaceSummaryItem>
39-
<NamespaceSummaryItem name="MongoDB.Bson.Serialization.Serializers" isDocumented="True">The MongoDB.Bson.Serialization.Serializers namespace contains the serializers for the various Bson and base .Net types</NamespaceSummaryItem>
40-
<NamespaceSummaryItem name="MongoDB.Driver" isDocumented="True">The MongoDB.Driver namespace contains all the basic types and classes that compose the MongoDB driver. It contains the classes needed for most interactions with the database.</NamespaceSummaryItem>
41-
<NamespaceSummaryItem name="MongoDB.Driver.Builders" isDocumented="True">The MongoDB.Driver.Builders namespace contains helper classes (builders) that can be used to construct various options used in the driver.</NamespaceSummaryItem>
42-
<NamespaceSummaryItem name="MongoDB.Driver.GridFS" isDocumented="True">The classes used to interact with MongoDB GridFS are part of the MongoDB.Driver.GridFS namespace.</NamespaceSummaryItem>
43-
<NamespaceSummaryItem name="MongoDB.Driver.Internal" isDocumented="True">The MongoDB.Driver.Internal namespace contains internal classes used by the driver such as ConnectionPool.</NamespaceSummaryItem>
44-
<NamespaceSummaryItem name="MongoDB.Driver.Wrappers" isDocumented="True">Wrapped versions of various classes for use in serialization are present in the MongoDB.Driver.Wrappers namespace.</NamespaceSummaryItem>
45-
<NamespaceSummaryItem name="MongoDB.Driver.Linq" isDocumented="True">The MongoDB.Driver.Linq namespace contains the LINQ related classes.</NamespaceSummaryItem>
46-
</NamespaceSummaries>
32+
<NamespaceSummaryItem name="MongoDB.Bson.IO" isDocumented="True">The MongoDB.Bson.IO namespace contains the types that allow reading and writing of Bson data.</NamespaceSummaryItem>
33+
<NamespaceSummaryItem name="MongoDB.Bson.Serialization" isDocumented="True">The MongoDB.Bson.Serialization namespace contains the types used in the serialization and deserialization of Bson data. It also contains the base interfaces to be implemented by the actual serializers.</NamespaceSummaryItem>
34+
<NamespaceSummaryItem name="(global)" isDocumented="False" />
35+
<NamespaceSummaryItem name="MongoDB.Bson.Serialization.Attributes" isDocumented="True">The MongoDB.Bson.Serialization.Attributes namespace contains the Attributes used to control Bson serialization/deserialization.</NamespaceSummaryItem>
36+
<NamespaceSummaryItem name="MongoDB.Bson.Serialization.Conventions" isDocumented="True">The various conventions used during serialization/deserialization of Bson data are represented by the types in the MongoDB.Bson.Serialization.Conventions namespace.</NamespaceSummaryItem>
37+
<NamespaceSummaryItem name="MongoDB.Bson.Serialization.IdGenerators" isDocumented="True">The various id generators used in the serialization/deserialization of Bson data are represented in this namespace.</NamespaceSummaryItem>
38+
<NamespaceSummaryItem name="MongoDB.Bson.Serialization.Options" isDocumented="True">The MongoDB.Bson.Serialization.Options namespace contains the classes that represent the serialization options for specific types such as DateTime, Document etc.</NamespaceSummaryItem>
39+
<NamespaceSummaryItem name="MongoDB.Bson.Serialization.Serializers" isDocumented="True">The MongoDB.Bson.Serialization.Serializers namespace contains the serializers for the various Bson and base .Net types</NamespaceSummaryItem>
40+
<NamespaceSummaryItem name="MongoDB.Driver" isDocumented="True">The MongoDB.Driver namespace contains all the basic types and classes that compose the MongoDB driver. It contains the classes needed for most interactions with the database.</NamespaceSummaryItem>
41+
<NamespaceSummaryItem name="MongoDB.Driver.Builders" isDocumented="True">The MongoDB.Driver.Builders namespace contains helper classes (builders) that can be used to construct various options used in the driver.</NamespaceSummaryItem>
42+
<NamespaceSummaryItem name="MongoDB.Driver.GridFS" isDocumented="True">The classes used to interact with MongoDB GridFS are part of the MongoDB.Driver.GridFS namespace.</NamespaceSummaryItem>
43+
<NamespaceSummaryItem name="MongoDB.Driver.Internal" isDocumented="True">The MongoDB.Driver.Internal namespace contains internal classes used by the driver such as ConnectionPool.</NamespaceSummaryItem>
44+
<NamespaceSummaryItem name="MongoDB.Driver.Wrappers" isDocumented="True">Wrapped versions of various classes for use in serialization are present in the MongoDB.Driver.Wrappers namespace.</NamespaceSummaryItem>
45+
<NamespaceSummaryItem name="MongoDB.Driver.Linq" isDocumented="True">The MongoDB.Driver.Linq namespace contains the LINQ related classes.</NamespaceSummaryItem>
46+
<NamespaceSummaryItem name="MongoDB.Driver.GeoJsonObjectModel" isDocumented="True">Classes used to build GeoJson objects in a type-safe manner.</NamespaceSummaryItem>
47+
<NamespaceSummaryItem name="MongoDB.Driver.GeoJsonObjectModel.Serializers" isDocumented="True">GeoJson object model serializers.</NamespaceSummaryItem></NamespaceSummaries>
4748
<CopyrightText>Copyright &amp;#169%3b 2010-2014 MongoDB Inc.</CopyrightText>
4849
<FeedbackEMailAddress>[email protected]</FeedbackEMailAddress>
4950
<FeedbackEMailLinkText>MongoDB</FeedbackEMailLinkText>

src/MongoDB.Driver/Builders/QueryBuilder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ public static IMongoQuery Near<TCoordinates>(string name, GeoJsonPoint<TCoordina
346346
/// <summary>
347347
/// Tests that the value of the named element is near some location (see $near).
348348
/// </summary>
349+
/// <typeparam name="TCoordinates">The type of the coordinates.</typeparam>
349350
/// <param name="name">The name of the element to test.</param>
350351
/// <param name="point">The point.</param>
351352
/// <param name="maxDistance">The max distance.</param>
@@ -359,6 +360,7 @@ public static IMongoQuery Near<TCoordinates>(string name, GeoJsonPoint<TCoordina
359360
/// <summary>
360361
/// Tests that the value of the named element is near some location (see $near).
361362
/// </summary>
363+
/// <typeparam name="TCoordinates">The type of the coordinates.</typeparam>
362364
/// <param name="name">The name of the element to test.</param>
363365
/// <param name="point">The point.</param>
364366
/// <param name="maxDistance">The max distance.</param>

src/MongoDB.Driver/Builders/UpdateBuilder.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@ public static UpdateBuilder PushEach(string name, PushEachOptions options, param
565565
/// <summary>
566566
/// Adds a list of values to the end of the named array element (see $push and $each).
567567
/// </summary>
568+
/// <typeparam name="T">The type of wrapped value.</typeparam>
568569
/// <param name="name">The name of the array element.</param>
569570
/// <param name="values">The values to add to the end of the array.</param>
570571
/// <returns>The builder (so method calls can be chained).</returns>
@@ -1529,6 +1530,7 @@ public UpdateBuilder PushEach(string name, PushEachOptions options, params BsonV
15291530
/// <summary>
15301531
/// Adds a list of values to the end of the named array element (see $push and $each).
15311532
/// </summary>
1533+
/// <typeparam name="T">The type of wrapped value.</typeparam>
15321534
/// <param name="name">The name of the array element.</param>
15331535
/// <param name="values">The values to add to the end of the array.</param>
15341536
/// <returns>The builder (so method calls can be chained).</returns>
@@ -1542,6 +1544,7 @@ public UpdateBuilder PushEachWrapped<T>(string name, IEnumerable<T> values)
15421544
/// <summary>
15431545
/// Adds a list of values to the end of the named array element (see $push and $each).
15441546
/// </summary>
1547+
/// <typeparam name="T">The type of wrapped value.</typeparam>
15451548
/// <param name="name">The name of the array element.</param>
15461549
/// <param name="values">The values to add to the end of the array.</param>
15471550
/// <returns>The builder (so method calls can be chained).</returns>
@@ -1555,6 +1558,7 @@ public UpdateBuilder PushEachWrapped<T>(string name, params T[] values)
15551558
/// <summary>
15561559
/// Adds a list of values to the end of the named array element (see $push and $each).
15571560
/// </summary>
1561+
/// <typeparam name="T">The type of wrapped value.</typeparam>
15581562
/// <param name="name">The name of the array element.</param>
15591563
/// <param name="args">The args.</param>
15601564
/// <param name="values">The values to add to the end of the array.</param>
@@ -1570,6 +1574,7 @@ public UpdateBuilder PushEachWrapped<T>(string name, PushEachOptions args, IEnum
15701574
/// <summary>
15711575
/// Adds a list of values to the end of the named array element (see $push and $each).
15721576
/// </summary>
1577+
/// <typeparam name="T">The type of wrapped value.</typeparam>
15731578
/// <param name="name">The name of the array element.</param>
15741579
/// <param name="args">The args.</param>
15751580
/// <param name="values">The values to add to the end of the array.</param>
@@ -2861,6 +2866,7 @@ public UpdateBuilder<TDocument> PushAll<TValue>(Expression<Func<TDocument, IEnum
28612866
/// <summary>
28622867
/// Adds a list of values to the end of the named array element (see $push and $each).
28632868
/// </summary>
2869+
/// <typeparam name="TValue">The type of the value.</typeparam>
28642870
/// <param name="memberExpression">The name of the array element.</param>
28652871
/// <param name="values">The values to add to the end of the array.</param>
28662872
/// <returns>The builder (so method calls can be chained).</returns>

src/MongoDB.Driver/CommandResults/CommandResultSerializer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ namespace MongoDB.Driver
2525
/// <summary>
2626
/// Represents a serializer for a CommandResult.
2727
/// </summary>
28+
/// <typeparam name="TCommandResult">The type of the command result.</typeparam>
2829
public class CommandResultSerializer<TCommandResult> : SerializerBase<TCommandResult> where TCommandResult : CommandResult
2930
{
3031
/// <summary>

src/MongoDB.Driver/CommandResults/DistinctCommandResult.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace MongoDB.Driver
2323
/// <summary>
2424
/// Represents the result of a command (there are also subclasses for various commands).
2525
/// </summary>
26+
/// <typeparam name="TValue">The type of the value.</typeparam>
2627
[Serializable]
2728
[BsonSerializer(typeof(DistinctCommandResultSerializer<>))]
2829
public class DistinctCommandResult<TValue> : CommandResult

src/MongoDB.Driver/DeleteOneModel.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@ namespace MongoDB.Driver
2626
/// <summary>
2727
/// Model for deleting a single document.
2828
/// </summary>
29+
/// <typeparam name="TDocument">The type of the document.</typeparam>
2930
[Serializable]
30-
public sealed class DeleteOneModel<T> : WriteModel<T>
31+
public sealed class DeleteOneModel<TDocument> : WriteModel<TDocument>
3132
{
3233
// fields
3334
private readonly object _filter;
3435

3536
// constructors
3637
/// <summary>
37-
/// Initializes a new instance of the <see cref="DeleteOneModel{T}"/> class.
38+
/// Initializes a new instance of the <see cref="DeleteOneModel{TDocument}"/> class.
3839
/// </summary>
3940
/// <param name="filter">The filter.</param>
4041
public DeleteOneModel(object filter)

src/MongoDB.Driver/FindOneAndDeleteOptions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ namespace MongoDB.Driver
2525
/// <summary>
2626
/// Options for a findAndModify command to delete an object.
2727
/// </summary>
28+
/// <typeparam name="TResult">The type of the result.</typeparam>
2829
public class FindOneAndDeleteOptions<TResult>
2930
{
3031
// fields

src/MongoDB.Driver/FindOneAndUpdateOptions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ namespace MongoDB.Driver
2525
/// <summary>
2626
/// Options for a findAndModify command to update an object.
2727
/// </summary>
28+
/// <typeparam name="TResult">The type of the result.</typeparam>
2829
public class FindOneAndUpdateOptions<TResult>
2930
{
3031
// fields

src/MongoDB.Driver/GeoJsonObjectModel/Serializers/GeoJsonLineStringCoordinatesSerializer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace MongoDB.Driver.GeoJsonObjectModel.Serializers
2323
/// <summary>
2424
/// Represents a serializer for a GeoJsonLineStringCoordinates value.
2525
/// </summary>
26+
/// <typeparam name="TCoordinates">The type of the coordinates.</typeparam>
2627
public class GeoJsonLineStringCoordinatesSerializer<TCoordinates> : ClassSerializerBase<GeoJsonLineStringCoordinates<TCoordinates>> where TCoordinates : GeoJsonCoordinates
2728
{
2829
// private fields

src/MongoDB.Driver/GeoJsonObjectModel/Serializers/GeoJsonLinearRingCoordinatesSerializer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace MongoDB.Driver.GeoJsonObjectModel.Serializers
2323
/// <summary>
2424
/// Represents a serializer for a GeoJsonLinearRingCoordinates value.
2525
/// </summary>
26+
/// <typeparam name="TCoordinates">The type of the coordinates.</typeparam>
2627
public class GeoJsonLinearRingCoordinatesSerializer<TCoordinates> : ClassSerializerBase<GeoJsonLinearRingCoordinates<TCoordinates>> where TCoordinates : GeoJsonCoordinates
2728
{
2829
// private fields

src/MongoDB.Driver/GeoJsonObjectModel/Serializers/GeoJsonMultiLineStringCoordinatesSerializer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace MongoDB.Driver.GeoJsonObjectModel.Serializers
2323
/// <summary>
2424
/// Represents a serializer for a GeoJsonMultiLineStringCoordinates value.
2525
/// </summary>
26+
/// <typeparam name="TCoordinates">The type of the coordinates.</typeparam>
2627
public class GeoJsonMultiLineStringCoordinatesSerializer<TCoordinates> : ClassSerializerBase<GeoJsonMultiLineStringCoordinates<TCoordinates>> where TCoordinates : GeoJsonCoordinates
2728
{
2829
// private fields

src/MongoDB.Driver/GeoJsonObjectModel/Serializers/GeoJsonMultiPointCoordinatesSerializer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace MongoDB.Driver.GeoJsonObjectModel.Serializers
2323
/// <summary>
2424
/// Represents a serializer for a GeoJsonMultiPointCoordinates value.
2525
/// </summary>
26+
/// <typeparam name="TCoordinates">The type of the coordinates.</typeparam>
2627
public class GeoJsonMultiPointCoordinatesSerializer<TCoordinates> : ClassSerializerBase<GeoJsonMultiPointCoordinates<TCoordinates>> where TCoordinates : GeoJsonCoordinates
2728
{
2829
// private fields

src/MongoDB.Driver/GeoJsonObjectModel/Serializers/GeoJsonMultiPolygonCoordinatesSerializer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace MongoDB.Driver.GeoJsonObjectModel.Serializers
2323
/// <summary>
2424
/// Represents a serializer for a GeoJsonMultiPolygonCoordinates value.
2525
/// </summary>
26+
/// <typeparam name="TCoordinates">The type of the coordinates.</typeparam>
2627
public class GeoJsonMultiPolygonCoordinatesSerializer<TCoordinates> : ClassSerializerBase<GeoJsonMultiPolygonCoordinates<TCoordinates>> where TCoordinates : GeoJsonCoordinates
2728
{
2829
// private fields

src/MongoDB.Driver/GeoJsonObjectModel/Serializers/GeoJsonPolygonCoordinatesSerializer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace MongoDB.Driver.GeoJsonObjectModel.Serializers
2323
/// <summary>
2424
/// Represents a serializer for a GeoJsonPolygonCoordinates value.
2525
/// </summary>
26+
/// <typeparam name="TCoordinates">The type of the coordinates.</typeparam>
2627
public class GeoJsonPolygonCoordinatesSerializer<TCoordinates> : ClassSerializerBase<GeoJsonPolygonCoordinates<TCoordinates>> where TCoordinates : GeoJsonCoordinates
2728
{
2829
// private fields

src/MongoDB.Driver/IAggregateFluent.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ public interface IAggregateFluent<TDocument, TResult> : IAsyncCursorSource<TResu
141141
/// <summary>
142142
/// Appends an unwind stage to the pipeline.
143143
/// </summary>
144+
/// <typeparam name="TNewResult">The type of the new result.</typeparam>
144145
/// <param name="fieldName">The name of the field to unwind.</param>
145146
/// <returns>The fluent aggregate interface.</returns>
146147
IAggregateFluent<TDocument, TNewResult> Unwind<TNewResult>(string fieldName);

src/MongoDB.Driver/IMongoIndexManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace MongoDB.Driver
2323
/// <summary>
2424
/// An interface representing methods used to create, delete and modify indexes.
2525
/// </summary>
26+
/// <typeparam name="TDocument">The type of the document.</typeparam>
2627
public interface IMongoIndexManager<TDocument>
2728
{
2829
/// <summary>

src/MongoDB.Driver/Linq/LinqToMongo.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,22 @@ public static bool ContainsAny<TSource>(this IEnumerable<TSource> source, IEnume
5555
/// <summary>
5656
/// Returns an explanation of how the query was executed (instead of the results).
5757
/// </summary>
58+
/// <typeparam name="TSource">The type of the elements of source.</typeparam>
5859
/// <param name="source">The LINQ query to explain.</param>
5960
/// <returns>An explanation of thow the query was executed.</returns>
60-
public static BsonDocument Explain<T>(this IQueryable<T> source)
61+
public static BsonDocument Explain<TSource>(this IQueryable<TSource> source)
6162
{
6263
return Explain(source, false);
6364
}
6465

6566
/// <summary>
6667
/// Returns an explanation of how the query was executed (instead of the results).
6768
/// </summary>
69+
/// <typeparam name="TSource">The type of the elements of source.</typeparam>
6870
/// <param name="source">The LINQ query to explain</param>
6971
/// <param name="verbose">Whether the explanation should contain more details.</param>
7072
/// <returns>An explanation of thow the query was executed.</returns>
71-
public static BsonDocument Explain<T>(this IQueryable<T> source, bool verbose)
73+
public static BsonDocument Explain<TSource>(this IQueryable<TSource> source, bool verbose)
7274
{
7375
var queryProvider = source.Provider as MongoQueryProvider;
7476
if (queryProvider == null)

src/MongoDB.Driver/MongoCollection.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ public virtual WriteConcernResult CreateIndex(params string[] keyNames)
269269
/// <summary>
270270
/// Returns the distinct values for a given field.
271271
/// </summary>
272+
/// <typeparam name="TValue">The type of the value.</typeparam>
272273
/// <param name="args">The args.</param>
273274
/// <returns>The distint values of the field.</returns>
274275
public IEnumerable<TValue> Distinct<TValue>(DistinctArgs args)

0 commit comments

Comments
 (0)