TwitCore/Helpers/UserAnalyser.cs
/// <summary>
/// This used to get the existing user from a list of users.
/// </summary>
/// <param name="users">IEnumerable of user.</param>
/// <param name="userHandle">The user handle that should be used to extract the user from the collection.</param>
/// <returns></returns>
This used to get the existing user from a list of users.
This used to get the existing user from a list of users .
public static User GetExistingUser(this IEnumerable<User> users, String userHandle) {
            var result = new User();
            foreach(var user in users) {
                if (user.Handle == userHandle)
                    result = user;
            }
            return result;
        }
public static User GetExistingUser ( this IEnumerable < User > users , String userHandle ) { var result = new User ( ) ; foreach ( var user in users ) { if ( user . Handle == userHandle ) result = user ; } return result ; }
This used to get the existing user from a list of users.
This used to get the existing user from a list of users .
None
IEnumerable<User>
this
userHandle
String
The user handle that should be used to extract the user from the collection.
The user handle that should be used to extract the user from the collection .
users
IEnumerable of user.
IEnumerable of user .