Pile<TValue> Class
Namespace: PTS.DataStructures
Assembly: PTS.DataStructures.dll
Syntax
public class Pile<TValue> : IReadOnlyList<TValue>, IReadOnlyCollection<TValue>, IEnumerable<TValue>, IEnumerable
Type Parameters
Name | Description |
---|---|
TValue |
Inheritance
System.Object
Pile<TValue>
Implements
System.Collections.Generic.IReadOnlyList<TValue>
System.Collections.Generic.IReadOnlyCollection<TValue>
System.Collections.Generic.IEnumerable<TValue>
System.Collections.IEnumerable
Constructors
Pile()
Declaration
public Pile()
Pile(TValue[])
Declaration
public Pile(TValue[] items)
Parameters
Type | Name | Description |
---|---|---|
TValue[] | items |
Pile(IEnumerable<TValue>)
Declaration
public Pile(IEnumerable<TValue> items)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TValue> | items |
Properties
Count
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Item[Int32]
Declaration
public TValue this[int key] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | key |
Property Value
Type | Description |
---|---|
TValue |
Methods
GetEnumerator()
Declaration
public IEnumerator<TValue> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<TValue> |
Operators
Implicit(Pile<TValue> to TValue)
Declaration
public static implicit operator TValue(Pile<TValue> set)
Parameters
Type | Name | Description |
---|---|---|
Pile<TValue> | set |
Returns
Type | Description |
---|---|
TValue |
Implicit(Pile<TValue> to List<TValue>)
Declaration
public static implicit operator List<TValue>(Pile<TValue> set)
Parameters
Type | Name | Description |
---|---|---|
Pile<TValue> | set |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<TValue> |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
Implements
System.Collections.Generic.IReadOnlyList<T>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()