Code:
public void ShareBP(Clan clan, Client c)
{
Team team = c.Hero.Team;
if (team != null)
{
Dictionary<Hero, UInt32> bpdict = new Dictionary<Hero, UInt32>();
foreach (TeamMember mem in team.Get)
bpdict.ThreadSafeAdd(mem.Member, mem.Member.BattlePower);
List<Hero> list = bpdict.Keys.ToList();
list.Sort();
Hero h = list.First();
}
}