DevForce Help Reference
For<T> Method


Converts an expression into a textual representation that can be used for databinding.
Syntax
'Declaration
 
Public Shared Function For(Of T)( _
   ByVal expr As Expression(Of Func(Of T,Object)) _
) As String
'Usage
 
Dim expr As Expression(Of Func(Of T,Object))
Dim value As String
 
value = PropertyPath.For(Of T)(expr)
public static string For<T>( 
   Expression<Func<T,object>> expr
)

Parameters

expr

Type Parameters

T
Remarks
Example: var r = PropertyPath.For<Type>(t => t.Assembly.CodeBase.Length); will return "Assembly.CodeBase.Length".
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

PropertyPath Class
PropertyPath Members

Send Feedback