public double RankFriend(User i_User, User i_FriendToCompare) { int countOfCommon = 0; int countOfTotal = 1; try { r_MatcherCommon.Match <Event>(i_User.Events, i_FriendToCompare.Events, ref countOfCommon, ref countOfTotal); } catch { countOfCommon = 0; } return(countOfCommon / countOfTotal); }
public double RankFriend(User i_User, User i_FriendToCompare) { MatchCommonInObjectCollection matcher = new MatchCommonInObjectCollection(); int countOfCommon = 0; int countOfTotal = 1; try { matcher.Match <Group>(i_User.Groups, i_FriendToCompare.Groups, ref countOfCommon, ref countOfTotal); } catch { countOfCommon = 0; } return(countOfCommon / countOfTotal); }