private string Url(CurrencyType currencyType, Leagues league) { var leagueName = league.GetAttributeValue <PoeNinjaAttribute, string>(o => o.Name); return(string.Format(currencyType.GetAttributeValue <UrlFormatAttribute, string>(o => o.UrlFormat), leagueName)); }