Contrast Between C Sharp and VB.NET

Advantages VB.NET:

Has back for optional parameters which makes COM interoperability yet easy.

With Preference Strict off dilatory binding is supported.Legacy VB functionalities can be used by using Microsoft.VisualBasic namespace.

Has the WITH construct which is not in C#.

The VB.NET belongings of Visual Studio .NET compiles your regulation in the background.

While this is considered an utility for little projects, community creating express goodly projects gain institute that the IDE slows down substantially as the project gets larger.

Advantages of C#

XML documentation is generated from source principle on the contrary this is instantly been incorporated in Whidbey.

Operator overloading which is not in ongoing VB.NET on the other hand is been introduced in Whidbey.

Use of this statement makes unmanaged resource disposal simple.

Access to Unsafe code. This allows pointer arithmetic etc, and can amend performance in some situations. However, it is not to be used lightly, as a piece of the acknowledged safety of C# is irrevocable (as the autograph implies).This is the larger discongruity that you can access unmanaged edict in C# and not in VB.NET.

System exceptions and utilize exceptions:

All exception derives from Exception Replica class. Exceptions can be generated programmatically or can be generated by system. Practice Exception serves as the pattern congregation for all use particular exception classes. It derives from Exception nevertheless does not feed any spread out functionality.

You should derive your custom employ exceptions from Apply Exception. Manipulate exception is used when we hankering to define user defined exception, while step exception is all which is defined by .NET.

Preventing de compilation of point trap DLL:

By pattern .NET embeds affluent Meta information inside the executable code using MSIL. Any one can easily decompile your DLL back using tools cherish ILDASM (owned by Microsoft) or Reflector for .NET which is a third party. Secondly there are bountiful third collection tools which bring about this decompiling formation a click away.

So any one can easily study in to your assemblies and reverse engineer them back in to actual source law and deduce some bona fide ace logic which can cause it easily done to crack your application.

The measure by which you can cutoff this reverse engineering is using "obfuscation". It's a mode which testament foil the decompilers. There are countless third parties (XenoCode, Demeanour for .NET) which arrange .NET obfuscation solution. Microsoft includes one that is Dotfuscator District Edition with Visual Studio.NET.

Keywords:

exception, exception nevertheless, exception step, exception classes, exception serves, exception derives, exception manipulate, exceptions exception, defined exception, derives exception
Comments: [0] / Post comment:

Arizona Cardinals' Dan Williams could sign soon - AZ Central.com

Arizona Cardinals' Dan Williams could sign soon AZ Central.com 30, 2010 07:16 PM FLAGSTAFF - With one large exception - rookie nose tackle Dan Williams - every Cardinals player reported for training camp Friday at ...

In exception, cashless cover for trauma, emergency cases - Times of India

In exception , cashless cover for trauma, emergency cases Times of India MUMBAI: In a major relief to health insurance policy-holders, public sector insurance companies have announced that cashless treatment will be extended to ...

More 'A-Team,' Sequels? Why 'Inception' Is the Summer Hollywood Exception - ABC News

More 'A-Team,' Sequels? Why 'Inception' Is the Summer Hollywood Exception ABC News 'Inception' Has Earned $150M+ -- So Why Do We Keep Getting Summer Films Like 'A-Team'? By GLORIA GOODALE Christopher Nolan's brainteaser film "Inception" ...