The ReadOnly
method in the Sandbox.Bind.Builder
struct is used to configure the builder to treat the binding as read-only. This means that the target property or object will not be modified by the binding system.
The ReadOnly
method in the Sandbox.Bind.Builder
struct is used to configure the builder to treat the binding as read-only. This means that the target property or object will not be modified by the binding system.
To use the ReadOnly
method, call it on an instance of Sandbox.Bind.Builder
and pass a boolean value indicating whether the binding should be read-only. If true
, the binding will be set to read-only mode.
// Example of using the ReadOnly method var builder = new Sandbox.Bind.Builder(); builder.ReadOnly(true); // Set the binding to read-only mode // Continue building the binding builder.Set(someObject, "PropertyName").From(anotherObject, "AnotherProperty");