-
C# Error - Overload for method
I took a button in form.I have two classes emp and bonus.bonus class is inherited from emp class.If bonus is giving ie in dialog box if we select ‘Yes’ b ie bonus is added to sal and we get ts ie total sal along with eno.If bonus is not given ie in dialog box if we select ‘No’ we need to get only sal along with eno.The following pgm is working fine.class emp { private int...
-
Unsafe Keyword
Why we use pointer in C#.NET with Unsafe keyword?
-
Can you prevent your class from being inherited and becoming a base class for some other classes?
Yes, that is what keyword sealed in the class definition is for. The developer trying to derive from your class will get a message: cannot inherit from Sealed class WhateverBaseClassName. It is the same concept as final class in Java.
-
-
C# Serializable Keyword
What is the use of serializable keyword in C#?
-
Assembly version information is stored in the:
Skill/Topic: AdvancedA) ManifestB) Garbage CollectorC) Heap
-
Which of the following is wrong with regards to Out keyword
A) For Out parameters a variable can be passed which has not initializedB) If Out parameters are not assigned a value with in the function body compiler throws errorC) The variable passed as a Out parameter must be static
-
If we need to compare X to a value 3 how do we do it in C#
A) If (X==3)B) If (X=3)C) If (X.equals(3) )
-
-
-
Uses of delegates
What is a delegate in C# and when are they commonly used in Windows Forms programming?
-
-
-
Postbackurl and Navigateurl
What is difference between "Session" and "Session" Objects? What is the use of "postbackurl" and "navigateurl" and the differences between those two things?
-
Explicit Implimentation
What do you mean by Explicit Interface Implimentation? What's Interface Mapping?
-
AutoPostBack Property
There is Cancel button and OK button on page. When we click Cancel button it skips all validation controls and goes to next page.(a)Page AutoPostback of Cancel is True.(b)Page AutoPostback of Cancel is False.(c)Page AutoPostback of OK is True.(d)Page AutoPostback of OK is False.Which option is correct?
-
Public Members
Why do we use properties rather than public members?
-
How to get the capacity of an array in C#
A) Count PropertyB) Length PropertyC) Ubound method
-
Remoting
What is remoting? How is it useful?
-
C# Interview Questions
Ans