Skip to content
This repository was archived by the owner on Apr 10, 2018. It is now read-only.

Commit f370233

Browse files
committed
Using string.Equals here too to avoid problems with null keys
1 parent 4e5be0a commit f370233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RestSharp.Portable.OAuth/OAuth/WebPairCollection.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ internal class WebPairCollection : IList<WebPair>
2626
private IList<WebPair> _parameters;
2727
public virtual WebPair this[string name]
2828
{
29-
get { return this.SingleOrDefault(p => p.Name.Equals(name)); }
29+
get { return this.SingleOrDefault(p => string.Equals(p.Name, name)); }
3030
}
3131
public virtual IEnumerable<string> Names
3232
{

0 commit comments

Comments
 (0)