void SetHerosReaction(IEnumerable <IConvertedPokerActionWithId> actionsAfterHeroRaise) { IEnumerable <IConvertedPokerActionWithId> herosReaction = from IConvertedPokerActionWithId action in actionsAfterHeroRaise where action.Id.Equals(_analyzationPreparer.HeroPosition) select action; _heroReaction = herosReaction.Count() > 0 ? herosReaction.First() : null; }
static string BuildSqlStringFrom(IConvertedPokerActionWithId convertedActionWithId) { return(string.Format( "[{0}]{1}", convertedActionWithId.Id, BuildSqlStringFrom(convertedActionWithId as IConvertedPokerAction))); }