Struct ReadOnlyArray<T>
Represents an immutable array.
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[Serializable]
[DataContract]
public struct ReadOnlyArray<T> : IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
Properties
Count
Declaration
public readonly int Count { get; }
Property Value
Empty
Declaration
public static readonly ReadOnlyArray<T> Empty { get; }
Property Value
Item[Int32]
Declaration
public readonly T this[int index] { get; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
Methods
CloneArray()
Creates a mutable copy of this array.
Declaration
Returns
CreateCopy(IEnumerable<T>)
Declaration
[Construction(new string[]{"CloneArray"})]
public static ReadOnlyArray<T> CreateCopy(IEnumerable<T> sequence)
Parameters
Returns
Equals(Object)
Declaration
public override bool Equals(object o)
Parameters
Type |
Name |
Description |
Object |
o |
|
Returns
Overrides
GetEnumerator()
Returns enumerator over elements of array.
Declaration
public ReadOnlyArraySegmentEnumerator<T> GetEnumerator()
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Operators
Equality(ReadOnlyArray<T>, ReadOnlyArray<T>)
Declaration
public static bool operator ==(ReadOnlyArray<T> left, ReadOnlyArray<T> right)
Parameters
Returns
Inequality(ReadOnlyArray<T>, ReadOnlyArray<T>)
Declaration
public static bool operator !=(ReadOnlyArray<T> left, ReadOnlyArray<T> right)
Parameters
Returns
Explicit Interface Implementations
IEnumerable<T>.GetEnumerator()
Declaration
IEnumerator<T> IEnumerable<T>.GetEnumerator()
Returns
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Implements
Extension Methods