Table of Contents

Class FitsValueCountReader<T>

Namespace
FitsModel.FitsStream.Reader.Values
Assembly
FitsModel.dll

Simple implementation of IFitsValueReader<T> that counts the number of values read. This can be a useful template for creating new implementations of IFitsValueReader<T>.

public class FitsValueCountReader<T> : IFitsValueReader<T> where T : INumber<T>

Type Parameters

T
Inheritance
FitsValueCountReader<T>
Implements
Inherited Members

Constructors

FitsValueCountReader()

public FitsValueCountReader()

Properties

Count

The number of values read so far.

public int Count { get; }

Property Value

int

Methods

ReadValue(T)

Increments the Count by one each time a value is read.

public void ReadValue(T value)

Parameters

value T

ReadValues(IEnumerable<T>)

Increments the Count by the number of values in the collection.

public void ReadValues(IEnumerable<T> values)

Parameters

values IEnumerable<T>

The collection of values to count.