Quote from Barney in Single Stamina
Ted: Well, Barney and his brother aren't exactly alike. Lily: James is gay. Robin: Really? I mean, never in a million years would I picture you with a gay brother, that's awesome. Ted: Yeah. I just wanted you to have a heads up, so you don't act all surprised when he gets here. [After a knock, Barney opens the front door] Barney: Here he is. James: What up, New York. Robin: [to Ted] Thanks for the heads up.