Topic RSSCacheVariable VS PlainVariable
December 23, 2022
16:17, EET
16:17, EET
Francesco Zambon
Member
Members
Forum Posts: 83
Member Since:
December 20, 2021
December 20, 2021
OfflineDecember 27, 2022
11:36, EET
11:36, EET
Jouni Aro
Moderator
Moderators
Forum Posts: 1044
Member Since:
December 21, 2011
December 21, 2011
OfflineHi Francesco,
The main difference is the PlainVariable<T> is generic, i.e. Value is type according to T (for example Double) and therefore you can use it a bit safer in the application to ensure that your values are always defined as T. CacheVariable, on the other hand is type agnostic and you can use the same class for all of your variables.
CacheVariable is also used in the code generated classes. Nowadays, we recommend to use code generated variable types, such as AnalogUnitType, if possible. But in the end it’s up to you and what feels best for your applications.
Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online:
Guest(s) 43
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 100
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 773
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1558
Posts: 6567
Newest Members:
aracelyhaley4, raphaelschonell, Ashmag, kathyreimann56, brittanylemos, dorthycundiff76, PromotionToold, CHHinrichs, rodricklienhop, jose_WanderleiModerators: Jouni Aro: 1039, Pyry: 1, Petri: 1, Bjarne Boström: 1054, Jimmy Ni: 26, Matti Siponen: 359, Lusetti: 0
Administrators: admin: 1
© Simple:Press —

Log In
Register