PropertyHelperExtractNameT Method (T, ExpressionFuncT, Object) |
Retrieves the name of a property from the lambda expression passed across. Returns null
if the expression refers to anything other than a simple property.
Namespace: VirtualRadar.InterfaceAssembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static string ExtractName<T>(
T unused,
Expression<Func<T, Object>> selectorExpression
)
Public Shared Function ExtractName(Of T) (
unused As T,
selectorExpression As Expression(Of Func(Of T, Object))
) As String
public:
generic<typename T>
static String^ ExtractName(
T unused,
Expression<Func<T, Object^>^>^ selectorExpression
)
static member ExtractName :
unused : 'T *
selectorExpression : Expression<Func<'T, Object>> -> string
Parameters
- unused
- Type: T
- selectorExpression
- Type: System.Linq.ExpressionsExpressionFuncT, Object
Type Parameters
- T
Return Value
Type:
StringSee Also