Energy Core Library
Energy.Base.Switch Class Reference

Switch (true/false) More...

Public Member Functions

 Switch ()
 
 Switch (bool value)
 
void On ()
 Set switch value to true More...
 
void Off ()
 Set swtich value to false More...
 

Static Public Member Functions

static operator bool (Switch o)
 
static implicit operator Switch (bool value)
 

Properties

bool Value [get, set]
 Current switch value More...
 

Events

EventHandler OnChange
 Event which will be fired on switch value change More...
 

Detailed Description

Switch (true/false)

Constructor & Destructor Documentation

◆ Switch() [1/2]

Energy.Base.Switch.Switch ( )

◆ Switch() [2/2]

Energy.Base.Switch.Switch ( bool  value)

Member Function Documentation

◆ Off()

void Energy.Base.Switch.Off ( )

Set swtich value to false

◆ On()

void Energy.Base.Switch.On ( )

Set switch value to true

◆ operator bool()

static Energy.Base.Switch.operator bool ( Switch  o)
explicitstatic

◆ operator Switch()

static implicit Energy.Base.Switch.operator Switch ( bool  value)
static

Property Documentation

◆ Value

bool Energy.Base.Switch.Value
getset

Current switch value

Event Documentation

◆ OnChange

EventHandler Energy.Base.Switch.OnChange

Event which will be fired on switch value change


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