Class AttributedReadingCollectionExtensions
- Namespace
- Acuit.Pinpoint.IO.Testing.DataAnnotations
- Assembly
- Acuit.Pinpoint.IO.Testing.Abstractions.dll
Extension members for working with readings from attributed reading classes.
public static class AttributedReadingCollectionExtensions
- Inheritance
-
AttributedReadingCollectionExtensions
- Inherited Members
Methods
GetValuesOfTypeOrDefault<T>(IReadingCollection)
Gets the readings values of a specific class derived from AttributedReadings from a reading collection, if they exist.
public static T? GetValuesOfTypeOrDefault<T>(this IReadingCollection readings) where T : notnull, AttributedReadings
Parameters
readingsIReadingCollection
Returns
- T
The readings class instance, or null if they don't exist in
readings.
Type Parameters
TThe readings class type derived from AttributedReadings.