TitleSlide- Why .NET & What is .NET

TitleSlide - Purpose of new Keyword

TitleSlide - Default Scope of CS Class

Article on Attributes with C# .NET

July 8th, 2013 | Posted by Vidya Vrat in .NET | C# | CLR - (0 Comments)

My latest article on “.NET Attributes” explains the Attributes and their usage with C#. It also refers to my previous articles where I have focused on specific attribute based topics for example, [CLSCompliant] and [WebMethod].

Read full article here on C# corner

Purpose of new Keyword

July 3rd, 2013 | Posted by Vidya Vrat in .NET | CLR - (0 Comments)

When you see such statement, one thing which comes in your mind about purpose of new keyword is that it creates an instance, isn’t it?

Class objC= new Class();

When this is certainly the main purpose, there are other behind the scene tasks, our well known new keyword is responsible for, lets understand what:

1-  Verifies the size needed for object allocation on managed heap.
2- If sufficient space is available then allocate the object, where application root pointer is pointing.
3- If required space is not available then, it triggers the GC (Garbage collection) lives in System.GC namespace, which does the heap cleanup and then after reclamation of needed space, the object will be allocated.

So, new is not just instance creation, its more that that. By the way, IL instruction for new is newobj.

The default upper limit of threads that the Thread pool will create by calling ThreadPool.SetMaxThreads.

• 1023 in .NET Framework 4.0 -32-bit environment
• 32768 in .NET Framework 4.0 – 64-bit environment
• 250 per core in .NET Framework 3.5
• 25 per core in .NET Framework 2.0

Delegates provide a way to define and execute callbacks. Their flexibility allows you to define the exact signature of the callback, and that information becomes part of the delegate type itself. Delegates are type-safe, object-oriented and secure.

Read my full article here CLR-Internals- Process and Application Domain

Default scope of a C# class

May 3rd, 2013 | Posted by Vidya Vrat in C# - (0 Comments)
Read my full article on default scope of a C# class

.NET Serialization

April 30th, 2013 | Posted by Vidya Vrat in .NET | Architecture | C# | CLR - (0 Comments)
Serialization is another great feature of .NET. This article talks about overall serialization in the .NET Framework and various available types such as binary, XML and SOAP. The prime objective of serialization is to persist and retrieve the state of an object. There are various scenarios where the ability to serialize objects is handy. 

As you know Microsoft .NET is designed with cross language interoperability. I.e. two .NET compliant languages can interoperate with each other. Which simply means a function in VB .NET can be called by C# and vice-versa.  Read my full article on .NET Cross Language Interoperability at C# Corner