ReflectionExtensions.

ReflectGet<TSender, TReturn>(TSender, Expression<Func<TSender, TReturn>>) Method

Summary

Gets an objects property dynamically through reflection - will throw an exception if proper has no getter or property does not exists
Namespace
Shiny
Containing Type
ReflectionExtensions

Syntax

public static TReturn ReflectGet<TSender, TReturn>(this TSender obj, Expression<Func<TSender, TReturn>> expression)

Type Parameters

Name Description
TSender
TReturn

Parameters

Name Type Description
obj TSender
expression Expression<Func<TSender, TReturn>>

Return Value

Type Description
TReturn
GitHub