Download the attached code. Here is how to use the class and its method.

using prjAmountInword;

clsAmountInWordClass objAmtWords = new clsAmountInWordClass();
string strAmtAssured = (string)objAmtWords.AmountinWord(ref Assured);