Code Conversion

Many developers looking for sample code, most often we will get a sample in other language than we develop. Here is one link which may help for developers to convert between C# to VB.NET and vice versa in a single click.

 http://labs.developerfusion.co.uk/convert/csharp-to-vb.aspx

There are certain points to noted after conversion like

  • Braces- in VB.NET we use () whereas in C# [ ]
  • Explicit conversion of ESRI Interfaces/Methods
  • C#.NET Version- Setting Create Ramp to True 

     IAlgorithmicColorRamp colorRamp    

          bool t = true;

          colorRamp.CreateRamp(out t);

  • Whereas VB.NET we simple use –> colorRamp.CreateRamp(True)     
  • Ending braces in C# has to done manually. variable.ToString() or enum.Next()
  • Collections need to be carefully analysed.
  • ….
Advertisements

Tags: ,

One Response to “Code Conversion”

  1. Fadhil Kamil Says:

    TQ!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: