private string GetCommandName(GitTfsCommand command) { return (from instance in GetCommandInstances() where instance.ConcreteType == command.GetType() select instance.Name).Single(); }