Authoring forms of a union of C# 15, reported by UnionKind.
Namespace: Metalama.Framework.Code.Types
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public enum UnionKindRemarks
The distinction matters because the language checks the restrictions on the members of a union for Declaration only. An instance field, an automatic property and a field-like event are forbidden in a union declaration and are allowed in the attribute form.
Fields
| Name | Description |
|---|---|
| Attribute | The union is a class or a struct that carries the |
| Declaration | The union is declared with the |
| None | The type is not a union. The code model never reports this value, because IUnionFacet exists for a union only. It is the default value of the enumeration. |