Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 8b9a110

Browse files
committed
Update ObjectDictionary.cs
1 parent fc9ff45 commit 8b9a110

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/ServiceStack.Text/ObjectDictionary.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ public StringDictionary(int capacity, IEqualityComparer<string> comparer) : base
2929
public StringDictionary(IDictionary<string, string> dictionary) : base(dictionary) { }
3030
public StringDictionary(IDictionary<string, string> dictionary, IEqualityComparer<string> comparer) : base(dictionary, comparer) { }
3131
protected StringDictionary(SerializationInfo info, StreamingContext context) : base(info, context) { }
32-
33-
3432
}
3533

3634
/// <summary>
@@ -41,6 +39,9 @@ public class KeyValuePairs : List<KeyValuePair<string, object>>
4139
public KeyValuePairs() { }
4240
public KeyValuePairs(int capacity) : base(capacity) { }
4341
public KeyValuePairs(IEnumerable<KeyValuePair<string, object>> collection) : base(collection) { }
42+
43+
public static KeyValuePair<string,object> Create(string key, object value) =>
44+
new KeyValuePair<string, object>(key, value);
4445
}
4546

4647
/// <summary>
@@ -52,7 +53,7 @@ public KeyValueStrings() { }
5253
public KeyValueStrings(int capacity) : base(capacity) { }
5354
public KeyValueStrings(IEnumerable<KeyValuePair<string, string>> collection) : base(collection) { }
5455

55-
public static KeyValuePair<string,object> Create(string key, object value) =>
56-
new KeyValuePair<string, object>(key, value);
56+
public static KeyValuePair<string,string> Create(string key, string value) =>
57+
new KeyValuePair<string,string>(key, value);
5758
}
5859
}

0 commit comments

Comments
 (0)