Classes are sealed by default, i.e. properties cannot be added dynamically at runtime.
Dynamic classes can add additional dynamic properties at runtime; sealed classes cannot.
Sealed classes conserve memory because no internal hash table is needed to store dynamic properties, and the compiler can provide better error feedback.
3 posts • Page 1 of 1