Class AndPropertyQuery
A query which is used to compose multiple IPropertyQuerys, returning only those properties that are returned by all queries.
Inheritance
System.Object
AndPropertyQuery
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
Syntax
public class AndPropertyQuery : IPropertyQuery
Constructors
| Improve this Doc View SourceAndPropertyQuery(IPropertyQuery[])
Constructs an instance of AndPropertyQuery, that will select properties from specified types
that are returned by queries
.
Declaration
public AndPropertyQuery(params IPropertyQuery[] queries)
Parameters
Type | Name | Description |
---|---|---|
IPropertyQuery[] | queries | The queries that should be used to select properties. |
Properties
| Improve this Doc View SourceQueries
Gets the queries that are used to select properties from specified types.
Declaration
public IEnumerable<IPropertyQuery> Queries { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IPropertyQuery> |
Methods
| Improve this Doc View SourceSelectProperties(Type)
Selects properties from type
that are returned by Queries.
Declaration
public IEnumerable<PropertyInfo> SelectProperties(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type which properties should be selected from. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Reflection.PropertyInfo> | Properties belonging to |