See the documentation for ImmutableObjectAttribute: โIndicates that the object does not have subprocesses that can be edited ... This attribute is usually used in the Properties window to determine whether the extensible object should be rendered as read-only. This property is used only in development time. " Thus, this attribute is not related to immutability: it disables the display / editing of subprocesses in an editor such as PropertyGrid.
Thus, the image is not declared immutable, and not Int32 as mutable. Int32 does not need the ImmutableObjectAttribute attribute because it does not expand anyway. He has an image because it will be extensible, but not useful. Itโs just really, really a misleading name.
itowlson
source share