I need to extract only the last part of a string after a /
character.
I have tried with LastIndexOf
, but it fails.
Any solution?
Attempt
var strDiv2 = tbxAff.Substring(tbxAff.IndexOf(" / "), /*value is missing*/ );
dblDiv2 = Convert.ToDouble(strDiv2);`