to decimal c# code example
Example 1: convert string to decimal c#
var convertDecimal = Convert.ToDecimal(value);
Example 2: convert string to decimal c#
DepositAmount = Convert.ToDecimal(u.DepositAmount)
Example 3: from decimal to int c#
decimal value = 0;
int value2 = Convert.ToInt32(value);