Inheriting two interface with same method signature in a Class (C#)

In my interview on a IT Services & Consulting Company, the interviewer has asked about the following situation of inheritence. At first i couldn’t recollect it. But after coming back in my home, i have tried it out.  The scenario was there are two interfaces IWheel and IMeters with same method signature declared inside it,… Continue reading

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