Totel:418 Click:
1
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
C# Interview Questions And Answers
Page 1
Questions 1 what is partial class in .net 2.0
Answer
Single Class can be separated into multiple physical files with same logical name.
Answer
Partial Class:-Using the partial keyword indicates that other parts of the class, struct, or interface can be defined within the namespace
Below is the example of a partial class.
Listing 1: Entire class definition in one file (file1.cs)
public class Node
{
public bool Delete()
{
}
public bool Create()
{
}
}
Listing 2: Class split across multiple files
(file1.cs)
public partial class Node
{
public bool Delete()
{
}
}
(file2.cs)
public partial class Node
{
public bool Create()
{
}
}
Questions 2 I want to delete an dll with a newer version, but nothing it throws an UnauthorizedAccessException!
please help!!!
Assembly a = Assembly.LoadFile(source);
Assembly b = Assembly.LoadFile(des
Answer
a
Questions 3
Answer
Hi there, i have been programming for a few weeks now, i am still learning new things as i go on.
i would like to understand a few more things about c#
if anyone can answer my questions i would be more then appreciated.
- What is the rule i must consider before placing a semi-colon?
- What is the best data type to use to hold a value of 1200.0? and is there any other data types that could be used and why should i choose the other.
- What is the defence between = and ==? And do i need to use both?
- What is the defrence between a while and a do-while loop?
- What is a class? And why is it so important to be used?
Questions 4 What is server code and client code in C#?
Answer
Code which execute on client are called client side code Otherwise Server side code.
Answer
Server code is run on server side and client code is run client side.
Answer
Server side code will execute at server end all the business logic will execute at server end where as client side code will execute at client side at browser end.
Questions 5 Why we using in header file using system and more header file is in C# what is difference between and all header file ?
Goto Page:
1
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
C# Objective Questions And Answers
C# Objective Questions And Answers
C# Interview Questions And Answers
C# Interview Questions And Answers
R4R,C# Objective, C# Subjective, C# Interview Questions And Answers,C#,C# Interview,C# Questions ,C# Answers