Struct ValueAtIndex<T>
Stores a value and its index in the collection.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Collections
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[Serializable]
[DataContract]
public struct ValueAtIndex<T>
  Type Parameters
| Name | Description | 
|---|---|
| T | The type of the stored value.  | 
      
Constructors
ValueAtIndex(Int32, T)
Initializes a new instance of the ValueAtIndex<T> struct.
Declaration
[Construction(new string[]{"Index", "Value"})]
public ValueAtIndex(int index, T value)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Int32 | index | The value of the collection element.  | 
      
| T | value | The index of the collection element.  | 
      
Fields
NoElement
Represents value missing from a collection.
Declaration
public static ValueAtIndex<T> NoElement
  Field Value
| Type | Description | 
|---|---|
| ValueAtIndex<T> | 
Properties
Index
Gets or sets the index of the element.
Declaration
[DataMember]
public int Index { get; set; }
  Property Value
| Type | Description | 
|---|---|
| Int32 | 
Value
Gets or sets the value of the element.
Declaration
[DataMember]
public T Value { get; set; }
  Property Value
| Type | Description | 
|---|---|
| T | 
Methods
ToString()
Converts the value of this instance to its equivalent string representation.
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| String | The string representation of the value of this instance.  |