Class AttributedReadingCollectionExtensions
- Namespace
- Acuit.Pinpoint.IO.Testing.DataAnnotations
- Assembly
- Acuit.Pinpoint.IO.Testing.Abstractions.dll
Extension methods 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 : AttributedReadings
Parameters
readingsIReadingCollectionThe readings collection.
Returns
- T
The readings class instance, or null if they don't exist in
readings.
Type Parameters
TThe readings class type derived from AttributedReadings.
Exceptions
- ArgumentNullException
readingsis null.