It’s a basics code, just sharing it since since will be useful for some body, who is in needy. I am just refresing my OOPS and Basic knowledge, just experimenting. Ha ha ha. Advice to guyz, don’t simply copy it, try to understand the logic and do it by yourself. [code lang=”c-sharp”] using System; using… Continue reading
A Tricky Interview Qn – VB.NET DLL & C# Application Interoperability
Recently I have been asked about a question in 2 interviews. There is a VB.NET Library which has a class having the following methods [code lang=”vb”] Public Class Class1 Public Sub SUM(ByVal a As Integer, ByVal b As Integer) End Sub Public Sub SUm(ByVal a As Integer, ByVal b As Integer) End Sub Public Sub… Continue reading
“Add Web Reference” and “Add Service Reference” differences
I know when we moved from Visual Studio 2005 to Visual Studio 2008, so of you might have noticed we cannot see the “Add Web Reference” option on the right click context menu for the Project, while we are trying to add Web Reference. Some of them simply blame with out idea, like What microsoft… Continue reading
Removing Duplicate Records from SQL Server Table
In recent few interviews there was a scenario that interviewer asked me to remove duplicate records from SQL Server table. For example: There is a table with 3 columns (COL1, COL2, COL3), having duplicate data stored like below screen shot of the table. If you can carefully look at the records you can find that… Continue reading
Static Constructors, Life time and Use
It’s a quick article. In a technial interview, panel has asked me about the static constructors and how and when static constructors will be called etc. He wrote a program to extract more idea from me through. I recreated the program to explain about it. Before going further I will fill in details about STATIC constructors. A static… Continue reading
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