Method EvalOrDefault
EvalOrDefault<T, TValue>(T, Func<T, TValue>, TValue)
Declaration
public static TValue EvalOrDefault<T, TValue>(this T instance, Func<T, TValue> extractor, TValue defaultValue) where T : class
Parameters
Type | Name | Description |
---|---|---|
T | instance | |
Func<T, TValue> | extractor | |
TValue | defaultValue |
Returns
Type | Description |
---|---|
TValue |
Type Parameters
Name | Description |
---|---|
T | |
TValue |