To convert a string to a decimal value in C#, you can use the decimal.Parse() or decimal.TryParse() methods.
Note that if the string cannot be converted to a decimal value, an exception will be thrown when using Parse(). To avoid this, you can use TryParse(), which returns a Boolean value indicating whether the conversion was successful, and stores the result in an output parameter.