Documentation
Table of Contents

Method Add

Namespace
IntentSharp.Catalog
Assembly
IntentSharp.Catalog.dll

Add<T>()

Registers T under its simple, full and assembly-qualified names.

public IntentTypeRegistry Add<T>()

Returns

IntentTypeRegistry

Type Parameters

T

Exceptions

ArgumentException

The type's full name or assembly-qualified name already names a different type.

Add(Type)

Registers type under its simple, full and assembly-qualified names. Registering the same type again changes nothing.

public IntentTypeRegistry Add(Type type)

Parameters

type Type

Returns

IntentTypeRegistry

Exceptions

ArgumentNullException

type is null.

ArgumentException

The type's full name or assembly-qualified name already names a different type.

Add(string, Type)

Registers type under an alias that files can use, for example Invoice for Contoso.Billing.InvoiceV2.

public IntentTypeRegistry Add(string name, Type type)

Parameters

name string
type Type

Returns

IntentTypeRegistry

Exceptions

ArgumentNullException

name or type is null.

ArgumentException

name is empty or white space, or already names another type. An alias may take over a name that is only another type's simple name.