Table of Contents

Struct ElementIndex<T>

Namespace
Bonsai.Reactive
Assembly
Bonsai.Core.dll

Represents an element from an observable sequence associated with its index information. The zero-based index represents the order of the element in the sequence.

public struct ElementIndex<T> : IEquatable<ElementIndex<T>>

Type Parameters

T

The type of the value being annotated with index information.

Implements
Inherited Members

Constructors

ElementIndex(T, int)

Initializes a new instance of the ElementIndex<T> class with the specified value and index information.

Properties

Index

Gets the zero-based index of the element in the sequence.

Value

Gets the value of the element.

Methods

Equals(ElementIndex<T>)

Returns a value indicating whether this instance has the same value and index as a specified ElementIndex<T> structure.

Equals(object)

Tests to see whether the specified object is an ElementIndex<T> structure with the same value and index as this ElementIndex<T> structure.

GetHashCode()

Returns a hash code for the current instance.

ToString()

Returns a string that represents the current object.

Operators

operator ==(ElementIndex<T>, ElementIndex<T>)

Tests whether two ElementIndex<T> structures are equal.

operator !=(ElementIndex<T>, ElementIndex<T>)

Tests whether two ElementIndex<T> structures are different.