Builder ReadOnly( bool makeReadOnly )

book_4_sparkGenerated
code_blocksInput

Description

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.

Usage

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

// 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");