how to cleanup object that does not support dispose method? How to implement dispose for such scenarios?
2 4713boxing means converting value type to reference type and unboxing means converting reference type to value type.why we need boxing and unboxing?
3 8237how to return morethan one value using out parameter in c#.net ; For Example : public int show(out int []a) { int []a={1,2,3,4,5}; return a[]; } we have to print all the values without using the Console.WriteLine statement;
1 4997hi i m bhawna ,a student of mca want to know about what type of technical question has been asked in an interview of mnc's like HCL,TCS,WIPRO
HCL,
1 25361. 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.
1 2856what is default accessibility for a class? what is difference b/w viewstate and controlstate? what is the default access specifier for a top level class which are not nested into other classes?
2 4067Helo , Help Me , Help Me About : C# Windows Application - Network How To Manage IP Client's Accessiblity To The Internet Share concise Substitute , Minor ISA Server
1958hi, 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 4374There are a class A. Another class B derived from it. Now if I do A a = new B(); and B b = new B(); What will happen in both the statements. And what is the difference between these two statements.
HCL,
3 7009I 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.
2 6385
What is visual c# net?
Is namespace a class?
What are console applications used for?
in object oriented programming, how would you describe encapsulation?
What is the size of a decimal?
Explain the types of assemblies in .net?
In howmany ways can you deploy an assembly?
I wish to create a windows application to perform a similar function as that of the "Search" which is provided to look for related files and folders in the System.. What steps must i follow??
Can you inherit from multiple classes in c#?
Can class be protected in c#?
What is the difference between do and while loop?
What are predicates in c#?
What is the use of 0 in c#?
Why do we need indexers in c#?
What is the default scope of a class in c#?