T
IdeaBlade DevForce 2010 Help Reference
For<T> Method
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core Namespace > PropertyPath Class : For<T> Method



expr
Converts an expression into a textual representation that can be used for databinding.

Syntax

Visual Basic (Declaration) 
Public Shared Function For(Of T)( _
   ByVal expr As Expression(Of Func(Of T,Object)) _
) As String
Visual Basic (Usage)Copy Code
Dim expr As Expression(Of Func(Of T,Object))
Dim value As String
 
value = PropertyPath.For(Of T)(expr)
C# 
public static string For<T>( 
   Expression<Func<T,object>> expr
)
C++/CLI 
public:
static String^ Forgeneric<typename 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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.