[CHANGE] Client handling
This commit is contained in:
@@ -8,4 +8,17 @@ public class YouTubeClientCollection : KeyedCollection<string, YouTubeClient>
|
||||
{
|
||||
return item.Id;
|
||||
}
|
||||
|
||||
public new void Add(YouTubeClient client)
|
||||
{
|
||||
if (Items.Contains(client))
|
||||
{
|
||||
var index = Items.IndexOf(client);
|
||||
Items[index] = client;
|
||||
}
|
||||
else
|
||||
{
|
||||
Items.Add(client);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user