Chapter 10 Flashcards
What are anonymous methods
They do not have name but there body exists.
Where we use anonymous methods
Where we want to use function address/delegates.
How we use anonymous methods
btnHello.Click +=
delegate {
Message.Show(“Hello”);
}
What is nullable value type
Such type which can contain values or can also null
How we can declare nullable value type
DateTime? startDate;
int? unitsInStock = 5;
What is the meaning of this statement
int availableUnits = unitInStock ?? 0;
If there is null in unitInstock then use value after ?? otherwise use value of untiInStock
What is XML
Extendable markup language - A language in which we can represent many things in structured way in a specific format. This file is readable both for human and machine.
What are 2 types of tags in XML
Tag with body
Tag without body
What is xPAth language
xPAth language is the language that read nodes from XML
What does XMLdoument do
It treats with complete document as a whole
What does xmlReader and xmlWriter do
It read and write XML docs node by node