Photon Quantum 3.0.0

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

Unit Attribute class. Used to mark a field with the respective Units More...

Inheritance diagram for Quantum.UnitAttribute:
Quantum.DecoratingPropertyAttribute Quantum.PropertyAttribute

Public Member Functions

 UnitAttribute (Units units)
 Initializes a new instance of the UnitAttribute class with the specified unit. More...
 

Properties

Units Unit [get]
 Selected Unit for the field. More...
 

Additional Inherited Members

- Static Public Attributes inherited from Quantum.DecoratingPropertyAttribute
const int DefaultOrder = -10000
 The default order of the attribute. More...
 
- Protected Member Functions inherited from Quantum.DecoratingPropertyAttribute
 DecoratingPropertyAttribute ()
 Initializes a new instance with the default order. More...
 
 DecoratingPropertyAttribute (int order)
 Initializes a new instance with the specified order. More...
 

Detailed Description

Unit Attribute class. Used to mark a field with the respective Units

Constructor & Destructor Documentation

◆ UnitAttribute()

Quantum.UnitAttribute.UnitAttribute ( Units  units)
inline

Initializes a new instance of the UnitAttribute class with the specified unit.

Parameters
units

Property Documentation

◆ Unit

Units Quantum.UnitAttribute.Unit
get

Selected Unit for the field.