-
-
Multicast Delegate
What is multicast delegate? When it is used?
-
How do I create a Delegate/MulticastDelegate?
C# requires only a single parameter for delegates: the method address. Unlike other languages, where the programmer must specify an object reference and the method to invoke, C# can infer both pieces of information by just specifying the method's name. For example, let's use System.Threading.ThreadStart: Foo MyFoo = new Foo();ThreadStart del = new ThreadStart(MyFoo.Baz);This means that delegates can...
-
What is the difference between an interface and abstract class?
In the interface all methods must be abstract; in the abstract class some methods can be concrete. In the interface no accessibility modifiers are allowed, which is ok in abstract classes.
-
-
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();
... -
Second maximum number
how to find out second maximum number in C#?
-
Why multiple Inheritance is not possible in C#?
(Please do not answer like this-It is possible through Interfaces.)
-
Object Oriented and Object Based Language
Explain What are Object Oriented Language and Object Based Language
-
Which attribute you generally find on top of main method
A) [assembly]B) [ STA ]C) [ STAThread ]
-
Define reflection
What is reflection and assembly?
-
-
-
-
Properties in C#
What are properties in C#? What are the advantages of using Properties ?
-
Does C# support multiple inheritance?
Skill/Topic: IntermediateA) YesB) No
-
The C# keyword int maps to which .NET type
A) System.Int16B) System.Int32C) System.Int64
-
-
Reference variable of Interface
It is possible to create the reference variable of an Interface which is 100% abstract in nature.Then why it is not possible to create a reference of an Abstract class?
-
String is an
Skill/Topic: BeginnerA) object typeB) reference type
C# Interview Questions
Ans