TwitCore/Helpers/UserAnalyser.cs
/// <summary>
/// Can be used for followers or users - checks if a string handle already exists in a list.
/// </summary>
/// <param name="users">List of the users/followers.</param>
/// <param name="handle">The handle to be checked against.</param>
/// <returns></returns>
Can be used for followers or users - checks if a string handle already exists in a list.
Can be used for followers or users - checks if a string handle already exists in a list .
public static bool CheckIfUserExists(this List<IPerson> users, string handle) {
            var result = false;
            users.ForEach(user => {
                if (user.Handle == handle) 
                    result = true;
            });
            return result;
        }
public static bool CheckIfUserExists ( this List < IPerson > users , string handle ) { var result = false ; users . ForEach ( user => { if ( user . Handle == handle ) result = true ; } ) ; return result ; }
Can be used for followers or users - checks if a string handle already exists in a list.
Can be used for followers or users - checks if a string handle already exists in a list .
None
List<IPerson>
this
handle
string
The handle to be checked against.
The handle to be checked against .
users
List of the users/followers.
List of the users / followers .