IReadOnlyExtensions
Wisej.Web.Markup.IReadOnlyExtensions
Last updated
Was this helpful?
Wisej.Web.Markup.IReadOnlyExtensions
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.1.0.0)
Adds fluent markup extension methods to the IReadOnly implementation.
public class IReadOnlyExtensionsPublic Class IReadOnlyExtensionsAttaches an action to be executed when the ReadOnlyChanged event is raised.
Returns: TReadOnly. The target object, allowing for method chaining.
This extension method allows you to easily attach an action to the ReadOnlyChanged event of an object.
myReadOnlyObject.OnReadOnlyChanged(obj => AlertBox.Show("ReadOnly state changed."));
Sets the read-only status of the specified target object.
Returns: TReadOnly. The target object with the updated read-only status.
This extension method allows you to set the read-only status of an object that implements the IReadOnly interface.
Last updated
Was this helpful?
Was this helpful?
var myObject = new MyReadOnlyObject();
myObject.ReadOnly(false);

