Dan Appleman has published a very neat article on VB.NET and C#. It's not about which one is a better language, which is a non-issue, but does show how to mix the best of both. Using the visual basic namespace in a piece of C# you can use the VB financial functions in your C# code.
<quote>
using Microsoft.VisualBasic;
........
Console.Write("Your payment is: ");
Console.WriteLine(Financial.Pmt(.05/12, 30*12,100000,0, DueDate.BegOfPeriod).ToString("$0.00")) ;
</quote>
That's what .net is about.
Peter
Posted
Fri, Jun 11 2004 7:24 AM
by
pvanooijen