public AddSite ( string profilePath ) : void | ||
profilePath | string | |
Результат | void |
public void AddSite(string profilePath)
{
HashSet<Site> sites = new HashSet<Site>(_sites);
Site newSite = new Site(profilePath);
if (!sites.Contains(newSite))
{
sites.Add(newSite);
}
_sites = sites;
}