Interface IIncludeExcludeOptions<T>
Interface exposing the include/exclude member options.
Namespace:Extend
Assembly:Extend.dll
Syntax
public interface IIncludeExcludeOptions<T>
where T : class
Type Parameters
Name | Description |
---|---|
T | The type to exclude or include members of. |
Methods
| Improve this Doc View SourceAllMembers()
Matches all members.
Declaration
IIncludeExcludeOptions<T> AllMembers()
Returns
Type | Description |
---|---|
IIncludeExcludeOptions<T><T> | Returns the modified options. |
ByPath(Expression<Func<T, Object>>)
Matches for members which have a matching path.
Declaration
IIncludeExcludeOptions<T> ByPath(Expression<Func<T, object>> expression)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><T, System.Object>> | expression | Expression representing the member path. |
Returns
Type | Description |
---|---|
IIncludeExcludeOptions<T><T> | Returns the modified options. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | expression can no the null. |
ByPath(String)
Matches for members which have a matching path.
Declaration
IIncludeExcludeOptions<T> ByPath(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The member path. |
Returns
Type | Description |
---|---|
IIncludeExcludeOptions<T><T> | Returns the modified options. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | path can no the null. |
IsNotTypeOf<TTarget>()
Matches for members which are NOT of the given type.
Declaration
IIncludeExcludeOptions<T> IsNotTypeOf<TTarget>()
Returns
Type | Description |
---|---|
IIncludeExcludeOptions<T><T> | Returns the modified options. |
Type Parameters
Name | Description |
---|---|
TTarget | The type to match. |
IsTypeOf<TTarget>()
Matches for members which are of the given type.
Declaration
IIncludeExcludeOptions<T> IsTypeOf<TTarget>()
Returns
Type | Description |
---|---|
IIncludeExcludeOptions<T><T> | Returns the modified options. |
Type Parameters
Name | Description |
---|---|
TTarget | The type to match. |