Class ReadonlyPropertyQuery

Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll

A query which returns readonly properties from specified types.

public class ReadonlyPropertyQuery : IPropertyQuery

Inheritance

objectReadonlyPropertyQuery

Implements

IPropertyQuery

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

ReadonlyPropertyQuery()

public ReadonlyPropertyQuery()

Methods

SelectProperties(Type)

Select those properties that are readonly from type.

public IEnumerable<PropertyInfo> SelectProperties(Type type)

Parameters

type Type

The type which readonly properties should be selected from.

Returns

IEnumerable<PropertyInfo>

Properties belonging to type that are readonly.