[CHANGE] Client handling
This commit is contained in:
parent
e4596df392
commit
34e029ec79
4 changed files with 60 additions and 16 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue