Table of Contents

Class HandleSubtypeAttribute

Namespace
DotBoxD.Abstractions
Assembly
DotBoxD.Abstractions.dll

Declares one supported subtype for a PolymorphicHandleAttribute handle. The analyzer lowers handle is T local to {BindingPrefix}.is(key), and instance host-binding calls on the declared subtype receive that key as their leading sandbox argument.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = true, Inherited = false)]
public sealed class HandleSubtypeAttribute : Attribute
Inheritance
HandleSubtypeAttribute
Inherited Members

Constructors

HandleSubtypeAttribute(Type, string, string, string)

public HandleSubtypeAttribute(Type subtype, string discriminator, string bindingPrefix, string capability)

Parameters

subtype Type
discriminator string
bindingPrefix string
capability string

Properties

BindingPrefix

public string BindingPrefix { get; }

Property Value

string

Capability

public string Capability { get; }

Property Value

string

Discriminator

public string Discriminator { get; }

Property Value

string

Subtype

public Type Subtype { get; }

Property Value

Type