-
Which attribute you generally find on top of main method
A) [assembly]B) [ STA ]C) [ STAThread ]
-
The C# keyword int maps to which .NET type
A) System.Int16B) System.Int32C) System.Int64
-
What Datatypes does the RangeValidator Control support?
Integer.String and Date
-
-
-
-
-
-
-
Find subString in String
Hi All,
I have written the below program to find the substring in the string. in case one word coming multiple time how to handle this situation ? the below program retuning -1 as position which is wrong.
cInput ("abhijit" , "jit")
public int FindSubString(string strSuper, string strSub)
{
char[] charSuper = strSuper.ToCharArray();
... -
-
-
-
-
-
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...
-
Inheritance
What is the importance of inheritance in c# and why i used?
-
-
Uses of delegates
What is a delegate in C# and when are they commonly used in Windows Forms programming?
-
Delegates and Generics in c#
What is the advantage of using delegates and Generics in c# .
C# Interview Questions
Ans