Definitions Flashcards

1
Q

Define enumerator

A

An enumerator is a read-only, forward-only cursor over a sequence of values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Define iterator

A

An iterator produces an enumerator, also, an iterator is a method, property, or indexer that contains one or more yield statements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an extension method

A

An extension method is a static method of a static class, where the this modifier is applied to the first parameter.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Define Tuple

A

Tuples provide a simple way to store a set of values.

The main purpose of tuples is to safely return multiple values from a method without resorting to out parameters.

Example:

var bob = ("Bob", 23);
or
(string, int) bob = ("Bob", 23);
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define Attribute

A

Attributes are an extensible mechanism for adding custom information to code elements (assemblies, types, members, return values, parameters, and generic type parameters).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Define Binding

A

Binding is the process of solving types, members, and operations–at either compile time or runtime.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Explain the difference between Formatting and Parsing.

A

Formatting means converting to a string; parsing means converting from a string.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Define subquery

A

A subquery is a query contained within another query’s lambda expression.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly