Quantum 3 3.1.0

Public Member Functions | Properties | List of all members
Quantum.DictionaryFieldAttribute Class Reference

Carries an attribute intended for a named field of a dictionary entry (its Key or Value). This is a plain attribute, not a Unity property attribute, so it registers no drawer and can safely sit on the dictionary field without hijacking the entry drawer; the entry drawer materializes the wrapped attribute via CreateAttribute and applies it to the targeted Key/Value. More...

Inherits Attribute.

Public Member Functions

 DictionaryFieldAttribute (string field, Type attributeType, params object[] arguments)
 Initializes a new instance of the DictionaryFieldAttribute class. More...
 
Attribute CreateAttribute ()
 Creates a new instance of the wrapped attribute from AttributeType and Arguments. More...
 

Properties

object[] Arguments [get]
 Constructor arguments for the wrapped attribute. More...
 
Type AttributeType [get]
 Type of the attribute to apply to the entry field. More...
 
string Field [get]
 Name of the entry field the wrapped attribute applies to. More...
 

Detailed Description

Carries an attribute intended for a named field of a dictionary entry (its Key or Value). This is a plain attribute, not a Unity property attribute, so it registers no drawer and can safely sit on the dictionary field without hijacking the entry drawer; the entry drawer materializes the wrapped attribute via CreateAttribute and applies it to the targeted Key/Value.

Constructor & Destructor Documentation

◆ DictionaryFieldAttribute()

Quantum.DictionaryFieldAttribute.DictionaryFieldAttribute ( string  field,
Type  attributeType,
params object[]  arguments 
)
inline

Initializes a new instance of the DictionaryFieldAttribute class.

Parameters
fieldName of the entry field the wrapped attribute applies to (Key or Value).
attributeTypeType of the attribute to apply to the entry field.
argumentsConstructor arguments for the wrapped attribute.

Member Function Documentation

◆ CreateAttribute()

Attribute Quantum.DictionaryFieldAttribute.CreateAttribute ( )

Creates a new instance of the wrapped attribute from AttributeType and Arguments.

Property Documentation

◆ Field

string Quantum.DictionaryFieldAttribute.Field
get

Name of the entry field the wrapped attribute applies to.

◆ AttributeType

Type Quantum.DictionaryFieldAttribute.AttributeType
get

Type of the attribute to apply to the entry field.

◆ Arguments

object [] Quantum.DictionaryFieldAttribute.Arguments
get

Constructor arguments for the wrapped attribute.