[]
Creates a Function to evaluate a given property path on a given object.
public static Func<T, X> CreateSelector<T, X>(string path)
| Type | Name | Description |
|---|---|---|
| string | path | The path. |
| Type | Description |
|---|---|
| Func<T, X> |
| Name | Description |
|---|---|
| T | Type of the element where the property path will be accessed. |
| X | Type of the result after evaluated the full property path. |
Creates a function that when called execute the path expression over the specified object.
public static Func<object, X> CreateSelector<X>(Type type, string path)
| Type | Name | Description |
|---|---|---|
| Type | type | The type of the objects that will be passed to the resulting function. |
| string | path | The path that will be evaluated. |
| Type | Description |
|---|---|
| Func<object, X> |
| Name | Description |
|---|---|
| X |
The object type passed in the resulting function must be the same as the specified in this method, otherwise an exception will be thrown.