Noda Time
FakeDateTimeZoneSource..::..Builder Class
NamespacesNodaTime.Testing.TimeZonesFakeDateTimeZoneSourceFakeDateTimeZoneSource..::..Builder

[This is preliminary documentation and is subject to change.]

Builder for FakeDateTimeZoneSource, allowing the built object to be immutable, but constructed via object/collection initializers.
Declaration Syntax
C#Visual BasicVisual C++
public sealed class Builder : IEnumerable<DateTimeZone>, 
	IEnumerable
Public NotInheritable Class Builder _
	Implements IEnumerable(Of DateTimeZone), IEnumerable
public ref class Builder sealed : IEnumerable<DateTimeZone^>, 
	IEnumerable
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
FakeDateTimeZoneSource..::..Builder()()()()
Creates a new builder.

Add(DateTimeZone)
Adds a time zone to the builder.

BclIdsToZoneIds
The dictionary mapping BCL TimeZoneInfo IDs to the canonical IDs served within the provider being built.

Build()()()()
Builds a time zone source from this builder. The returned builder will be independent of this builder; further changes to this builder will not be reflected in the returned source.

GetEnumerator()()()()
Returns the zones within the builder. This mostly exists to enable collection initializers.

VersionId
The version ID to advertise; defaults to "TestZones".

Zones
List of zones, exposed as a property for use when a test needs to set properties as well as adding zones.

Inheritance Hierarchy
Object
FakeDateTimeZoneSource..::..Builder

Assembly: NodaTime.Testing (Module: NodaTime.Testing.dll) Version: 1.2.0.0 (1.2.0)