convert string to decimal c#

C#
DepositAmount = Convert.ToDecimal(u.DepositAmount)var convertDecimal = Convert.ToDecimal(value);
Source

Also in C#: