.NET Framework Namespaces Flashcards

1
Q

The most fundamental types in .NET live directly in which namespace?

A

They reside in the System namespace.
These include C#’s built-in types, the Exception base class, the Enum, Array, and Delegate base classes, and Nullable, Type, DateTime, TimeSpan, Guid, Math, Random, Convert, and BirConverter and more.

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

Which namespace is the StringBuilder class contained in?

A

System.Text

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

Under what namespace does the Regular Expressions class reside?

A

System.Text.RegularExpression

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

How are non-generic collections referenced?

A

System.Collections

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

How are generic collections referenced?

A

System.Collections.Generic

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

How are strongly typed collections referenced?

A

System.Collections.Specialized

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

Which namespace bases for your own collections?

A

System.Collections.ObjectModel

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

How is a thread-safe collection referenced?

A

System.Collections.Concurrent

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