A constant cannot be static while read only can be static.
A constant need to declare and initialize at the declaration only while read only can be initialized at declaration or by code on constructor.
A constant value is evaluated at the design time , while a readonly value is evaluated at the run time.
A constant need to declare and initialize at the declaration only while read only can be initialized at declaration or by code on constructor.
A constant value is evaluated at the design time , while a readonly value is evaluated at the run time.
No comments:
Post a Comment