Allows setting a readonly property of an object with type checking on the value.
Useful for setting readonly properties within classes when they should only be readonly to the user.
Allows setting a readonly property of an object with type checking on the value.
Useful for setting readonly properties within classes when they should only be readonly to the user.