Hi, I want to add few tips that I picked up.
Often you only get a brief description of what they are looking for, like X years of experience in some technology (ASP.NET, MS SQL, etc.).
So when I'm preparing for this interview I make a research about the company, what it does, what are their primary products, etc. and based on that I try to guess what exactly you will be developing. After that I do a little knowledge refreshing (if needed) and check out the unfamiliar technologies (if they use any) and also I do some coding tests, like these on
online programming test site.
Now regarding the questions, most of the time it is the same approach, they ask some general questions about .NET and about the technologies listed in the requirements for the job.
Yes sometime you get a coding question, but it is because they want to see how good are your problem solving skills, so when you are writing a code you should talk about what you are thinking and what you would do to solve it.
But if they truly are checking a code memorising capabilities then I just leave.
Also some time ago I got quite a few silly questions from the recruiter, like what is the namespace of this class... I mean what's the point of that? They do not use any IDE? I asked him if they develop in notepad and then build with MSBuild from command line, because I really do not see a point in these questions...
Also few great questions that I encountered was, what was your role in last job.
This is a great question, note that they really are not looking for a short answer like developer, they are asking about your responsibilities and about your workflow.
Another good question is to describe the architecture of your last project that you have been working on and what would you change to make it better.
I believe these kind of questions matter the most.