From 82f72581c9ec10e412a1f67a41604b0b777101c4 Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Tue, 24 Jun 2014 15:47:08 -0700 Subject: [PATCH] Add an explict Count to IHeaderDictionary to resolve ambiguity. --- src/Microsoft.AspNet.Http/IHeaderDictionary.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Microsoft.AspNet.Http/IHeaderDictionary.cs b/src/Microsoft.AspNet.Http/IHeaderDictionary.cs index d740fe03bf..fecac4a0f4 100644 --- a/src/Microsoft.AspNet.Http/IHeaderDictionary.cs +++ b/src/Microsoft.AspNet.Http/IHeaderDictionary.cs @@ -18,6 +18,12 @@ namespace Microsoft.AspNet.Http /// the associated value from the collection as a single string or null if the key is not present. new string this[string key] { get; set; } + // This property is duplicated to resolve an ambiguity between IReadableStringCollection.Count and IDictionary.Count + /// + /// Gets the number of elements contained in the collection. + /// + new int Count { get; } + /// /// Get the associated values from the collection separated into individual values. /// Quoted values will not be split, and the quotes will be removed.