ActiveReports 9
Observe<T,TI>(T,Expression<Func<T,TI>>,Action<TI>,Action<TI>) Method

Action for old value
Action for new value
More sofisticated changes listener implementation
Syntax
'Declaration
 
Public Overloads Shared Function Observe
    (Of T As System.ComponentModel.INotifyPropertyChanged,
     TI)( _
   ByVal obj As T, _
   ByVal getterExpr As System.Linq.Expressions.Expression(Of Func(Of T,TI)), _
   ByVal leave As System.Action(Of TI), _
   ByVal enter As System.Action(Of TI) _
) As System.IDisposable
public static System.IDisposable Observe<T,TI>( 
   T obj,
   System.Linq.Expressions.Expression<Func<T,TI>> getterExpr,
   System.Action<TI> leave,
   System.Action<TI> enter
)
where T: System.ComponentModel.INotifyPropertyChanged

Parameters

obj
getterExpr
leave
Action for old value
enter
Action for new value

Type Parameters

T
TI
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ActiveModelListenExtensions Class
ActiveModelListenExtensions Members
Overload List

 

 


Copyright © 2014 GrapeCity, inc. All rights reserved

Support Forum