Table of Contents

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

readings IReadingCollection

The readings collection.

Returns

T

The readings class instance, or null if they don't exist in readings.

Type Parameters

T

The readings class type derived from AttributedReadings.

Exceptions

ArgumentNullException

readings is null.