Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
LegalLab.Models.Property< T > Class Template Reference

Generic class for properties More...

Inheritance diagram for LegalLab.Models.Property< T >:
LegalLab.Models.IProperty LegalLab.Models.DelayedActionProperty< T > LegalLab.Models.PersistedProperty< T >

Public Member Functions

 Property (string Name, T DefaultValue, IModel Model)
 Generic class for persistant properties More...
 

Protected Attributes

value = default
 

Properties

string Name [get]
 Property Name More...
 
IModel Model [get]
 Model hosting the property. More...
 
object UntypedValue [get, set]
 Untyped value of property More...
 
virtual T Value [get, set]
 Current value of the property More...
 

Events

PropertyChangedEventHandler PropertyChanged
 Occurs when the property value changes. More...
 

Detailed Description

Generic class for properties

Definition at line 10 of file Property.cs.

Constructor & Destructor Documentation

◆ Property()

LegalLab.Models.Property< T >.Property ( string  Name,
DefaultValue,
IModel  Model 
)

Generic class for persistant properties

Parameters
CategoryProperty category
NameProperty name
LiveUpdatesIf updates to the parameter should be persisted live.
DefaultValueDefault value of property
ModelModel hosting the property

Definition at line 24 of file Property.cs.

Member Data Documentation

◆ value

T LegalLab.Models.Property< T >.value = default
protected

Definition at line 12 of file Property.cs.

Property Documentation

◆ Model

Model hosting the property.

Implements LegalLab.Models.IProperty.

Definition at line 39 of file Property.cs.

◆ Name

string LegalLab.Models.Property< T >.Name
get

Property Name

Implements LegalLab.Models.IProperty.

Definition at line 34 of file Property.cs.

◆ UntypedValue

object LegalLab.Models.Property< T >.UntypedValue
getset

Untyped value of property

Implements LegalLab.Models.IProperty.

Definition at line 44 of file Property.cs.

◆ Value

virtual T LegalLab.Models.Property< T >.Value
getset

Current value of the property

Definition at line 59 of file Property.cs.

Event Documentation

◆ PropertyChanged

PropertyChangedEventHandler LegalLab.Models.Property< T >.PropertyChanged

Occurs when the property value changes.

Definition at line 92 of file Property.cs.


The documentation for this class was generated from the following file: