-
Which keywords can do case insensitive string comparison in c#?
string.Equals("string number 1", "String NUMBER 1", StringComparison.CurrentCultureIgnoreCase) There is also a similar override of String.Compare().
-
-
-
You can create the following using C#
Skill/Topic: BeginnerA) class librariesB) Stand alone GUI (Windows Forms) applicationsC) ASP.NET Web pagesD) Command Line applications
-
Interfaces provide implementation of methods
Skill/Topic: IntermediateA) TrueB) FalseExplanation: They only provide declaration on methods, events and properties
-
Value of x
This is interview question,public void A() { int x; x = 8; x *= 4 + 8 / 2; } Given the above code, what is the value of "x"?options:- A) 3 B) 2 C)4 D) None
-
-
Does C# support properties of array types?
Yes. Here's a simple example: using System;class Class1 {private string[] MyField;public string[] MyProperty {get { return MyField; }set { MyField = value; }}}class MainClass{public static int Main(string[] args) {Class1 c = new Class1();string[] arr = new string[] {"apple", "banana;c.MyProperty = arr;Console.WriteLine(c.MyProperty[0]); // "apple"return 0;}}
-
How to implement multiple inheritence in C#
A) Using InterfaceB) Using Abstract classC) Using DelegatesD) Using Events
-
-
-
Design Patterns
What kind of design patterns can be used for C# development projects?
-
What is CTS?
Skill/Topic: BeginnerA) Common Translation systemB) Csharp Type SystemC) Common Type SystemD) Constants Translation Specification
-
NET offers the follwing security features:
Skill/Topic: AdvancedA) Transaction based securityB) Code-based securityC) Both the aboveD) None of the above
-
To access attributes, the following is used:
Skill/Topic: AdvancedA) reflectionB) pointersC) collections
-
What happens if we refer a variable which in not initialized in C#
A) Compiler throws warning messageB) Compiler throws error messageC) Compiles the application with out any problemExplanation: Variable needs to be initialized before use
-
C# pointers
Can we use pointer in c# ?if we can then how it can implement ?and if no then why we can not use pointer in c#?
-
What is a delegate?
A delegate object encapsulates a reference to a method. In C++ they were referred to as function pointers.
-
Messagebox in C#
How to use messagebox in C#? What is the process for creating message box?
-
C# Interview Questions
Ans