Skip to content

T_CodeJam_Collections_IndexedItem_1

Andrew Koryavchenko edited this page Jun 17, 2018 · 6 revisions

IndexedItem(T) Structure

Represents an element associated with its index in a sequence.

Namespace: CodeJam.Collections
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public struct IndexedItem<T> : IEquatable<IndexedItem<T>>

VB

Public Structure IndexedItem(Of T)
	Implements IEquatable(Of IndexedItem(Of T))

F#

[<SealedAttribute>]
type IndexedItem<'T> =  
    struct
        interface IEquatable<IndexedItem<'T>>
    end

Type Parameters

 

T
[Missing documentation for "T:CodeJam.Collections.IndexedItem`1"]
  The IndexedItem(T) type exposes the following members.

Constructors

 

Name Description
Public method IndexedItem(T) Initializes a new instance of the IndexedItem(T).
  Back to Top

Properties

 

Name Description
Public property Index Gets the index of the element in a sequence.
Public property IsFirst Determines if the value is first in a sequence.
Public property IsLast Determines if the value is last in a sequence.
Public property Item Gets the value of the element.
  Back to Top

Methods

 

Name Description
Public method Equals(Object) Indicates whether this instance and a specified object are equal. (Overrides ValueType.Equals(Object).)
Public method Equals(IndexedItem(T)) Indicates whether the current object is equal to another object of the same type.
Public method GetHashCode Returns the hash code for this instance. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)
  Back to Top

Operators

 

Name Description
Public operatorStatic member Equality Operator ==
Public operatorStatic member Inequality Operator !=
  Back to Top

See Also

Reference

CodeJam.Collections Namespace

Clone this wiki locally