How many types of namespaces available in version4?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Sharp Interview Questions

i have a question which is quite simple but yet complicated for me my question is why do we use void, if it does not return anything to the compiler? if it is used for normal display it can also be done by what is called Console.Write() or Consol.WriteLine() and if i do not use void with my method then my compiler throws me an error. if i return a value say integer then i write public int fun() display of the result can also be done here then why is it so necessary to use void with a function and why so compiler throw us an error if v don't use void return type?

2 Answers  


What is the and operator in c#?

0 Answers  


What standard types does c# use?

0 Answers  


hi, I am a begineer to c sharp. I have written a code for finding out prime numbers. Can anyone identify what are the flaws in my code. Kindly donot complex the code or present logic because i am new to c sharp and just started learning programming language.Thanks in advance. class Program { static void Main(string[] args) { int a,b=1; a = int.Parse(Console.ReadLine()); c= int.Parse(Console.ReadLine()); if (a % b == 0 && a % 2 != 0 && a % a == 0) Console.WriteLine(a); else if (a % b == 0 && a % 2 == 0) Console.WriteLine(a%2); Console.WriteLine("Number is not PRIME"); Console.ReadLine(); } } }

2 Answers  


What is use of a HashTable in .NET?

0 Answers   Arigo Infotech,






Why do we use parameters in c#?

0 Answers  


Is it possible to have different access modifiers on the get/set methods of a property?

0 Answers  


Explain the top reason to use c# language?

0 Answers  


what is IDisposal interface,IComparable,IEquatable,IFormatable

0 Answers   Wipro,


What is a struct in C#?

0 Answers   Arigo Infotech,


What is the use of expression tree in c#?

0 Answers  


Why hashtable is thread safe in c#?

0 Answers  


Categories