string test = "";
string test1 = string.Empty;
But i use decimal as empty
decimal test3 = "";
decimal test3 = "";
this is show
Cannot Implicitly convert type 'string' to 'decimal'
and try another to refer in online to use for fix this
string test1 = string.Empty;
decimal test2 = decimal.Parse(test1);
decimal test2 = decimal.Parse(test1);
but it shows
Input string was not in a correct format.


Ranjeet PatraRank #1,436 · 1.1K reputationPosted Apr 12, 2017, 3:18 AM EDT
Avinash AherRank #5,790 · 286 reputationPosted Apr 12, 2017, 3:42 AM EDT
Ramesh PalanivelRank #372 · 6.8K reputationPosted Apr 12, 2017, 3:54 AM EDT
Ramesh PalanivelRank #372 · 6.8K reputationPosted Apr 12, 2017, 4:43 AM EDT
RajaRank #1,035 · 1.9K reputationPosted Apr 12, 2017, 4:41 AM EDT
Ramesh Palanivel
RajaRank #1,035 · 1.9K reputationPosted Apr 12, 2017, 4:53 AM EDT
Ramesh Palanivel