Click or drag to resize

BaseSequenceT, TSelf Class

Common base class for all sequences.
Inheritance Hierarchy
SystemObject
  Austra.LibraryBaseSequenceT, TSelf
    Austra.LibraryDateSequence
    Austra.LibrarySequenceT, TSelf

Namespace: Austra.Library
Assembly: Austra.Library (in Austra.Library.dll) Version: 2.8.0+77a1ed58155f905ef6d88f42ae024582c7e1b4c3
Syntax
C#
public abstract class BaseSequence<T, TSelf> : IEquatable<TSelf>
where T : struct, new(), Object, IEquatable<T>, IEqualityOperators<T, T, bool>
where TSelf : BaseSequence<T, TSelf>

Type Parameters

T
The type for the returned items.
TSelf
The covariant type of the sequence.

The BaseSequenceT, TSelf type exposes the following members.

Properties
 NameDescription
Public propertyItemIndexGets the value at the specified index.
Public propertyItemInt32Gets the value at the specified index.
Public propertyItemRangeGets a range from the sequence.
Top
Methods
 NameDescription
Public methodAllChecks whether the predicate is satisfied by all items.
Public methodAnyChecks whether the predicate is satisfied by at least one item.
Public methodCloneMakes a shallow copy of the sequence and resets it.
Public methodContainsChecks if the sequence contains the given value.
Public methodDistinctGets only the unique values in this sequence.
Public methodEquals(TSelf)Checks if two sequence has the same length and arguments.
Public methodEquals(Object)Checks if the provided argument is a sequence with the same values.
(Overrides ObjectEquals(Object))
Public methodFilterTransform a sequence acording to the predicate passed as parameter.
Public methodFirstGets the first value in the sequence.
Public methodGetHashCodeReturns the hashcode for this vector.
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodLastGets the last value in the sequence.
Public methodLengthGets the total number of values in the sequence.
Public methodMapTransform a sequence acording to the function passed as parameter.
Public methodNextGets the next item in the sequence.
Public methodReduceReduces a sequence to a single number.
Public methodResetResets the sequence.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUntil(T)Get the initial values of a sequence until a value is found.
Public methodUntil(FuncT, Boolean)Get the initial values of a sequence until a predicate is satisfied.
Public methodWhileGet the initial values of a sequence that satisfy a predicate.
Public methodZipJoins the common part of two sequence with the help of a lambda.
Top
See Also