This week's musings: Time saver freeware
Profile your performance worries with DotTrace 3.0 profiler

Interesting attributes in CompilerServices namespace

The namespace System.CompilerServices has a few useful classes that can be used by a developer even though he is not working on compilers.

SuppressIldasm Attribute

One interesting element could be to stop disassembling your code by using this attribute. This does not obfuscate your code code rather tells the ILDASM to not show your code when IL is being decompiled. This can be applied on an Assembly.

Example

Just add this line to your code.

[assembly: System.Runtime.CompilerServices.SuppressIldasm()]

StringFreezing Attribute

If you apply this attribute to the assembly then all the strings used within the assembly is frozen when native generation is used. This is useful of a performance hungry application that uses a lot of strings. Warning, be sure to apply this to the assemblies that do not require unloading as the assembly with this attribute cannot be unloaded.

Example

Just add this line to your code.

[assembly: System.Runtime.CompilerServices.StringFreezing()]

Just add this line to your code.

 

Technorati Tags: ,

Independent Thought

The web development increases the door towards internet global world. This internet world enhances the field of MBA and affiliate marketing line for companies. Different companies enhance their promotion and marketing by website design holding their product promotion. Different famous companies enhance small firms by introducing affiliate program for them. These companies have started their separate computer department specially working for web hosting services. Different services are provided other than web hosting and this include internet marketing solutions for the firms. Due to all these services through internet the field of web design development becomes very famous.

Comments

The comments to this entry are closed.