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
Properties
BindingPrefix
public string BindingPrefix { get; }
Property Value
Capability
public string Capability { get; }
Property Value
Discriminator
public string Discriminator { get; }
Property Value
Subtype
public Type Subtype { get; }