IModifiedExtensions
Wisej.Web.Markup.IModifiedExtensions
Last updated
Was this helpful?
Wisej.Web.Markup.IModifiedExtensions
Last updated
Was this helpful?
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.0.0.0)
Adds fluent markup extension methods to the IModified interface.
public class IModifiedExtensions
Sets the Modified property of the target to the specified value.
TModified
target
value
Returns: TModified. The target object with the modified property set.
This method allows for fluent syntax when setting the Modified property.
var modifiedObject = someObject.Modified(true);
Subscribes an action to the ModifiedChanged event of the target.
TModified
target
action
Returns: TModified. The target object with the event subscription added.
This method allows for fluent syntax when subscribing to the ModifiedChanged event.
someObject.OnModifiedChanged(obj => AlertBox.Show("Modified changed!"));
The type of the target, which must implement .
The target object whose property is to be set.
The value to set for the property.
The type of the target, which must implement .
The target object whose event is to be subscribed to.
The action to invoke when the event is raised.