Stack & Heap (Storage of Value Types and Reference Types)

As i have informed in my previous article, In an IT Services compnay interviewer has asked me about the Difference between value types  and reference types in .NET. I have conveyed that Value Types are stored in “Stack” (Datastructure for Memory Management Technique) and Reference Types are stored in “Heap”. He immediately asked me why… Continue reading

Reverse an Integer Value in C# (Used No Built in Functions)

Today i have attened an IT Services Company interview, where i was been asked to write the code for Reverse an Integer Value in C# with out using any Built In functions. Here is the code i formulated in my mind. Go through it. [code lang=”c-sharp”] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace… Continue reading

Server-Activated Vs Client-Activated Objects

Server-activated objects are objects whose lifetimes are directly controlled by the server. Server-activated objects are created by the server only when they are needed. They are created when the client invokes the first method on that proxy. Singleton is one of activation modes for server-activated objects. Singleton objects are objects for which there will always… Continue reading