From 506af8b0a8196f0a23015a2d31beee413566ae1f Mon Sep 17 00:00:00 2001 From: Steve Wagner Date: Wed, 5 May 2010 18:17:41 +0200 Subject: [PATCH] Fix some minor compiler warnings. --- source/MongoDB/Linq/Grouping.cs | 37 +++++++++++++++++++++---- source/MongoDB/Linq/MongoQueryObject.cs | 4 --- 2 files changed, 32 insertions(+), 9 deletions(-) diff --git a/source/MongoDB/Linq/Grouping.cs b/source/MongoDB/Linq/Grouping.cs index cbb23ab2..48eebaf4 100644 --- a/source/MongoDB/Linq/Grouping.cs +++ b/source/MongoDB/Linq/Grouping.cs @@ -1,32 +1,59 @@ -using System; -using System.Collections; +using System.Collections; using System.Collections.Generic; using System.Linq; -using System.Text; namespace MongoDB.Linq { + /// + /// + /// + /// The type of the key. + /// The type of the element. public class Grouping : IGrouping { - private TKey _key; - private IEnumerable _group; + private readonly TKey _key; + private readonly IEnumerable _group; + /// + /// Initializes a new instance of the class. + /// + /// The key. + /// The group. public Grouping(TKey key, IEnumerable group) { _key = key; _group = group; } + /// + /// Gets the key of the . + /// + /// + /// + /// The key of the . + /// public TKey Key { get { return _key; } } + /// + /// Returns an enumerator that iterates through the collection. + /// + /// + /// A that can be used to iterate through the collection. + /// public IEnumerator GetEnumerator() { return _group.GetEnumerator(); } + /// + /// Returns an enumerator that iterates through a collection. + /// + /// + /// An object that can be used to iterate through the collection. + /// IEnumerator IEnumerable.GetEnumerator() { return _group.GetEnumerator(); diff --git a/source/MongoDB/Linq/MongoQueryObject.cs b/source/MongoDB/Linq/MongoQueryObject.cs index 130419f3..fb15d4fc 100644 --- a/source/MongoDB/Linq/MongoQueryObject.cs +++ b/source/MongoDB/Linq/MongoQueryObject.cs @@ -1,14 +1,10 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Linq.Expressions; namespace MongoDB.Linq { internal class MongoQueryObject { - private bool _hasOrder; private Document _query; private Document _sort;