public SetMatchupProposerViewModel( IEnumerable<IMatchupProposer> proposers, IMatchupProposer activeMatchupProposer ) { Algorithms = proposers .Select( proposer => new Algorithm( proposer, proposer.GetType() == activeMatchupProposer.GetType() ) ) .ToArray(); }
public Algorithm(IMatchupProposer proposer, bool selected = false ) : this(proposer.GetType().FullName, proposer.GetType().Name, selected) { }