ReflectionUtilities.

GetMemberFunc<T>(Type, string, Object, string, BindingFlags) Method

Summary

Tries to find a field/property/method in the `declaringType` with the `name` and creates a delegate to get its value.

If a member is found but can't be converted to an appropriate delegate, the `error` message describes the problem.
Assembly
Weaver.dll
Namespace
Weaver
Containing Type
ReflectionUtilities

Syntax

public static Func<T> GetMemberFunc<T>(Type declaringType, string name, Object obj, out string error, BindingFlags bindingFlags)

Type Parameters

Name Description
T

Parameters

Name Type Description
declaringType Type
name string
obj Object
error string
bindingFlags BindingFlags

Return Value

Type Description
Func<T>