Feedback Form

Saturday, September 29, 2007

C# Unsafe code not exist in VB.Net

One of the biggest differences between VB.Net and C# is using the Unsafe code.
In C# we can write unsafe code such as dealing with images in unsafe style:

We can deal with pointers inside this unsafe block which we can't do in VB.Net till now.

What can we do to write an application that must have some unsafe code?
My opinion is don't waste your time and use an external C# dll file contains all the unsafe code and call it from your VB.Net application.
You can use any VB.Net to C# converters, it will convert it for you but when compile you will receive compilation errors in your VB.Net application.

Don't get hung up on 'pure one language application' - that will almost always work out for the worse"


Zimri said...

Keep up the good work.