I'd agree with Mur16 assuming that you're trying to learn the language. If you really need to solve this issue is there any particular reason for .NET?