abab
July 1st, 2009, 10:46 AM
I have something like that:
Regex reg = new Regex(@"^\d+(\.\d\d)?$");
if (!reg.IsMatch(book.price))
{
}
But I have an error:
Error 4 Argument 1: cannot convert from 'decimal' to 'string'
What should I do ?
Regex reg = new Regex(@"^\d+(\.\d\d)?$");
if (!reg.IsMatch(book.price))
{
}
But I have an error:
Error 4 Argument 1: cannot convert from 'decimal' to 'string'
What should I do ?