how to return morethan one value using out parameter in c#.net ;
For Example : public int show(out int a)
we have to print all the values without using the
1. What is lazy loading?
2. What is delay signing?
3. How to transfer view object to presenter in MVP?
4. How to create a generic class?
5. What is Ajax object?
6. What is explicit interface implementation?
7. I1, I2 interfaces have same methods (say PrintName)
explicitly implemented in class C1. Now how to call
PrintName method from I1?
8. I have a list of Customers. List the customer with
maximum orders using LINQ.
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.
static void Main(string args)
a = int.Parse(Console.ReadLine());
if (a % b == 0 && a % 2 != 0 && a % a == 0)
else if (a % b == 0 && a % 2 == 0)
Console.WriteLine("Number is not
I created a class which is inherited from interface
IDisposable. Now if I use object of this class with using
keyword. Then How the dispose method will get call. Does
garbage collector call it or some else.
Write a console application and implement the ternary operator to decide whether the
age a user entered after being prompted is allowed to vote or not(given that only citizens
between 18 and 120 years only inclusive can vote). Use exception handling for non-numerical
What exactly happens when we debug and build the program?
if we are updating a database using thread, and mean while
application crashes or thread being aborted then what will
happen in Database? Rollback or Database will be updated?
Please explain with different scenario.