Skip to content

Commit 8ae83f2

Browse files
committed
better generic type parameter names
1 parent df7dd1a commit 8ae83f2

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/Nest/CommonAbstractions/Fluent/FluentDictionary.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
namespace Nest
44
{
5-
public class FluentDictionary<K, V> : Dictionary<K, V>
5+
public class FluentDictionary<TKey, TValue> : Dictionary<TKey, TValue>
66
{
77
public FluentDictionary()
88
{
99
}
1010

11-
public FluentDictionary(IDictionary<K, V> copy)
11+
public FluentDictionary(IDictionary<TKey, TValue> copy)
1212
{
1313
if (copy == null)
1414
return;
@@ -17,14 +17,15 @@ public FluentDictionary(IDictionary<K, V> copy)
1717
this[kv.Key] = kv.Value;
1818
}
1919

20-
public new FluentDictionary<K, V> Add(K k, V v)
20+
public new FluentDictionary<TKey, TValue> Add(TKey key, TValue value)
2121
{
22-
base.Add(k, v);
22+
base.Add(key, value);
2323
return this;
2424
}
25-
public new FluentDictionary<K, V> Remove(K k)
25+
26+
public new FluentDictionary<TKey, TValue> Remove(TKey key)
2627
{
27-
base.Remove(k);
28+
base.Remove(key);
2829
return this;
2930
}
3031
}

0 commit comments

Comments
 (0)