Class MetaCollection<T>
A meta-data collection containing meta-data linked to items or edges.
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class MetaCollection<T> : MetaCollection, IEnumerable<T> where T : struct
Type Parameters
|
T
|
Constructors
MetaCollection(Int64, T)
Creates a new meta-data collection.
Declaration
public MetaCollection(long capacity, T empty = default (T))
Parameters
|
System.Int64
capacity
|
|
T
empty
|
Properties
Count
Gets the # of elements.
Declaration
public override long Count { get; }
Property Value
|
System.Int64
|
Overrides
ElementType
Gets the type of the elements.
Declaration
public override Type ElementType { get; }
Property Value
|
Type
|
Overrides
EmptyValue
Gets a value that represents 'empty'.²
Declaration
public T EmptyValue { get; }
Property Value
|
T
|
Item[UInt32]
Gets or sets the meta-data.
Declaration
public T this[uint i] { get; set; }
Parameters
|
System.UInt32
i
|
Property Value
|
T
|
Methods
Copy(UInt32, UInt32)
Copies whatever data is in 'from' to 'to'.
Declaration
public override void Copy(uint to, uint from)
Parameters
|
System.UInt32
to
|
|
System.UInt32
from
|
Overrides
CopyFrom(MetaCollection, UInt32, UInt32)
Copies elements from the other collection to this collection.
Declaration
public override void CopyFrom(MetaCollection other, uint idx, uint otherIdx)
Parameters
|
MetaCollection
other
|
|
System.UInt32
idx
|
|
System.UInt32
otherIdx
|
Overrides
Equal(UInt32, UInt32)
Returns true if the data in the two given items is identical.
Declaration
public override bool Equal(uint item1, uint item2)
Parameters
|
System.UInt32
item1
|
|
System.UInt32
item2
|
Returns
|
System.Boolean
|
Overrides
GetEnumerator()
Gets the enumerator.
Declaration
public IEnumerator<T> GetEnumerator()
Returns
|
IEnumerator<T>
|
GetRaw(UInt32)
Gets the raw data.
Declaration
public override object GetRaw(uint idx)
Parameters
|
System.UInt32
idx
|
Returns
|
System.Object
|
Overrides
Serialize(Stream)
Serializes this collection.
Declaration
public override long Serialize(Stream stream)
Parameters
|
Stream
stream
|
Returns
|
System.Int64
|
Overrides
SetEmpty(UInt32)
Sets the item to the default empty value.
Declaration
public override void SetEmpty(uint item)
Parameters
|
System.UInt32
item
|
Overrides
Switch(UInt32, UInt32)
Switches the two items around.
Declaration
public override void Switch(uint item1, uint item2)
Parameters
|
System.UInt32
item1
|
|
System.UInt32
item2
|
Overrides
Trim()
Trims the internal data structures to it's minimum possible size.
Declaration
public void Trim()