Fix KeyValue issue when multiple duplicate children exist.

This commit is contained in:
Ryan Stecker
2012-06-01 23:33:18 -05:00
parent 792ecb80b1
commit d4e216deaf

View File

@@ -273,7 +273,7 @@ namespace SteamKit2
get
{
var child = this.Children
.SingleOrDefault( c => string.Equals( c.Name, key, StringComparison.OrdinalIgnoreCase ) );
.FirstOrDefault( c => string.Equals( c.Name, key, StringComparison.OrdinalIgnoreCase ) );
if ( child == null )
{