Witam
System.FormatException: „Nieprawidłowy format ciągu wejściowego.”
Dostaje taki komunikat przy Convert.ToDecimal.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lekcja1
{
class Program
{
static void Main()
{
decimal decimalVal;
string stringVal = "2,345.26";
decimalVal = System.Convert.ToDecimal(stringVal);
System.Console.WriteLine("String converted to decimal = {0} ", decimalVal);
Console.ReadKey();
}
}
}
Mogę prosić o jakieś sugestie?