/// <summary> /// Gets the profile from http://steamcommunity.com/id/[customurl]/?xml=1. /// </summary> /// <param name="steamUserId"> The steam user id. </param> /// <returns> </returns> public SteamProfile GetProfile(string steamUserId) { if (steamUserId == null) { throw new ArgumentNullException("steamUserId"); } string xml = _webClient.DownloadString(GetProfileUrl(steamUserId, true)); if (xml == null) { return(null); } return(_profileParser.Parse(xml).SingleOrDefault()); }