C# (pronounced C-sharp) is a new object oriented language from Microsoft and is derived from C and C++. It also borrows a lot of concepts from Java too including garbage collection. More at http://msdn.microsoft.com/vstudio/nextgen/technology/csharpintro.asp, http://msdn.microsoft.com/library/default.asp?URL=/library/dotnet/csspec/vclrfcsharpspec_Start.htm and http://msdn.microsoft.com/vstudio/nextgen/technology/csharpdownload.asp
No there is not possible to inline assembly or IL in C# code.
No. The access modifier on a property applies to both its get and set accessors. What you need to do if you want them to be different is make the property read-only (by only providing a get accessor) and create a private/internal set method that is separate from the property.
No. Static indexers are not in C# (Sharp)
Yes. The code in the finally always runs. If you return out of the try block, or even if you do a goto out of the try, the finally block always runs:
using System;
class main
{
public static void Main()
{
try
{
Console.WriteLine("In Try block");
return;
}
finally
{
Console.WriteLine("In Finally block");
}
}
}
Both In Try block and In Finally block will be displayed. Whether the return is in the try block or after the try-finally block, performance is not affected either way. The compiler treats it as if the return were outside the try block anyway. If it’s a return without an expression (as it is above), the IL emitted is identical whether the return is inside or outside of the try. If the return has an expression, there’s an extra store/load of the value of the expression (since it has to be computed within the try block).

Select appropriate Question to view its more answers in this category of
Do you find any Answer incorrect or incomplete? Please e-mail us or
place your comment and mention the number of question or if you have correct answer then
open the appropriate question by clicking on question and then place your answer in comment
regarding particular question in this category "C# (Sharp) Programming Language Interview Questions and Answers" To ensure quality,
each change is checked by our team, before it enters the main website
database. If you desire so, the changes will be credited to your name.
Webmaster Said:
Thank you.
Azeem ud din Said:
and i prepared from your site
thanks
i m pakistani
sulaiman khan Said:
We want the basic question in c sharp not advanced. please paste some basic question.
thanks,
sulaiman khan.
krishnachaitanya Said:
my name is krishna i am unable to save the questions and answers so kindly help me out to trace the problem and find the solution.
Webmaster Reply:
Please click the question and it will open in selection mode, then you can select and copy paste the questions
Regards
karthick Said:
and i prepared from your site
rakesh Said:
I am an INDIAN
sathish Said:
Regards of
Sathish
I am Indian
senthil kumar Said: