Cosmetic, but this is sexier IMHO:
var contact = new ContactInfo() {
    Jid = ri.Jid,
    Name = ri.Name
}