Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
15 Cards in this Set
- Front
- Back
What are the ways to deploy an assembly?
|
MSI installer
CAB archive XCOPY command |
|
What is the .NET datatype that allows the retrieval of data by a unique key?
|
HashTable
|
|
Can you change the value of a variable while debugging a C# application?
|
Yes, in Visual Studio use the Immediate window
|
|
How can you sort the elements of a the array in descending order?
|
By calling Sort() and then Reverse() methods
|
|
What are delegates?
|
A delegate defines a reference type that can be used to encapsulate a method with a specific signature. A delegate instance encapsulates a static or an instance method.
Delegates are roughly similar to function pointers in C++ however, delegates are type-safe and secure. |
|
What is the CLR
|
Common Language Runtime
the virtual machine component of the .net framework responsible for managing the execution of .net programs. |
|
Functions of the CLR
|
compiled code (CIL) is converted into machine instructions that are then executed by the computer's CPU. additionally:
memory management type safety exception handling garbage collection thread management |
|
CIL
|
Common Intermediate Language
.net compatible languages compile to a second platform-neutral language called CIL The CLR compiles CIL to machine-readable code that can be executed on the current platform |
|
virtual machine (VM)
|
a software implementation of a machine (i.e.: a computer) that executes programs like a physical machine.
|
|
what is a constructor?
|
the method of a class that is called when an object of that class is created.
the constructor initializes class parameters and has the same name as the class |
|
what is a destructor?
|
deletes an object of the class from memory
gets called: 1. when the object is explicitly deleted by the code you write 2. when the object passes out of scope (i.e.: when the program exits a function) |
|
how are methods overloaded in C#?
|
by specifying different numbers or types of parameters in the method definition
overloading allows flexibility with different types of data input |
|
what is encapsulation?
|
combining function definitions and data together into a class
|
|
why use encapsulation?
|
to separate parts of the code from the rest of the program
allows the private data of an object to be hidden from the rest of the program also allows classes to be reused in other programs |
|
what is the difference between a class and a struct?
|
classes are passed by reference - structs are passed by value
classes can be inherited - structs cannot structs generally give better performance as they are stored on the stack rather than the heap |