Table of Contents

ImportBuilder Class

Definition

Namespace
Bodu.Globalization.Calendar.Builder
Assembly
Bodu.Globalization.Calendar.Builder.dll
Package
Bodu.Globalization.Calendar.Builder 1.0.0
Source
ImportBuilder.cs

Provides a fluent surface for configuring an import of an external resource, optionally selecting and re-scoping individual concepts through one or more Use directives.

public sealed class ImportBuilder
Inheritance
ImportBuilder
Inherited Members
Extension Methods

Remarks

An import that declares no Use directive imports every concept the resource defines; local concepts win over imported ones that share an identifier.

Methods

Use(string, Action<ImportUseBuilder>?)

Selects and re-scopes a single imported concept through the supplied delegate.

public ImportBuilder Use(string notableDateRef, Action<ImportUseBuilder>? configure = null)

Parameters

notableDateRef string

The identifier of the imported concept.

configure Action<ImportUseBuilder>

A delegate that configures the import-use directive, or null.

Returns

ImportBuilder

The same ImportBuilder instance, enabling chained calls.

Exceptions

ArgumentException

notableDateRef is null, empty, or white-space.

Applies to

ProductVersions
.NET8, 10