IModifiedExtensions
Wisej.Web.Markup.IModifiedExtensions
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.0.0.0)
Adds fluent markup extension methods to the IModified interface.
public class IModifiedExtensions
Methods
Modified<TModified>(target, value)

Sets the Modified property of the target to the specified 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);
OnModifiedChanged<TModified>(target, action)

Subscribes an action to the ModifiedChanged event of the target.
Parameter
Type
Description
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!"));
Last updated
Was this helpful?