Table of Contents

Delegate UnionCaseAliasResolver

Namespace
Nerdbank.Json
Assembly
Nerdbank.Json.dll

Resolves a custom identifier for a case type within a particular C# union.

public delegate DerivedTypeIdentifier? UnionCaseAliasResolver(Type unionType, Type caseType)

Parameters

unionType Type

The containing union type.

caseType Type

The payload type of the union case.

Returns

DerivedTypeIdentifier?

The custom identifier, or null to use the normal identifier.