| C# Question Answers-51 - 60 | C# Question Answers-71 - 80 | |
C# (C-Sharp) Question Answers - 61-70 |
There are two types of JIT compilers in the latest .NET Framework:
.NET Framework 1.0/1.1 had Econo-JIT, which is obsolete since .NET 2.0.
The data value may not be changed. Changing a variable creates a new value in memory; the original immutable value is discarded.
Use Explicit Interface Implementation:
interface A { void Hi(); }
interface B { void Hi(); }
class Test : A, B {
void A.Hi() { Console.WriteLine("Hi from A"); }
void B.Hi() { Console.WriteLine("Hi from B"); }
}
Partial classes allow splitting a single class into multiple source code (.cs) files.
PID stands for Process Identification. It is useful for terminating or managing a specific process.
A Windows Service starts before user login, has no UI, writes messages to Event Log, can run under any user or system context, and is controlled via Service Control Manager. A standard EXE starts after login and interacts with the user interface.
Interfaces define properties, methods, and events but provide no implementation. They are implemented by classes.
A modifier indicating that the method is asynchronous.
An operator that suspends the execution of the containing method until the awaited task completes.
| C# Question Answers-51 - 60 | C# Question Answers-71 - 80 | |