public decimal ExchangeRate() { HttpWebRequest request; HttpWebResponse response; decimal rate=0; string completeUrl = string.Format("www.exchangecurrency.com", "INR", "EUR"); request = (HttpWebRequest)WebRequest.Create(completeUrl); response = (HttpWebResponse)request.GetResponse(); var reader = new StreamReader(response.GetResponseStream()); string json_result = reader.ReadToEnd(); decimal.TryParse(json_result, out rate); return rate; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)