Show / Hide Table of Contents

Class MetaCollection<T>

A meta-data collection containing meta-data linked to items or edges.

Inheritance
System.Object
MetaCollection
MetaCollection<T>
Inherited Members
MetaCollection.Deserialize(Stream, ArrayProfile)
MetaCollection.VerifyType()
MetaCollection.GetTypeHeader()
MetaCollection.GetTypeForHeader(Int32)
MetaCollection.DeserializeArray<T>(Stream, ArrayProfile, Int64, Int32)
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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
MetaCollection.Count

ElementType

Gets the type of the elements.

Declaration
public override Type ElementType { get; }
Property Value
Type

Overrides
MetaCollection.ElementType

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
MetaCollection.Copy(UInt32, UInt32)

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
MetaCollection.CopyFrom(MetaCollection, UInt32, UInt32)

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
MetaCollection.Equal(UInt32, UInt32)

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
MetaCollection.GetRaw(UInt32)

Serialize(Stream)

Serializes this collection.

Declaration
public override long Serialize(Stream stream)
Parameters
Stream stream

Returns
System.Int64

Overrides
MetaCollection.Serialize(Stream)

SetEmpty(UInt32)

Sets the item to the default empty value.

Declaration
public override void SetEmpty(uint item)
Parameters
System.UInt32 item

Overrides
MetaCollection.SetEmpty(UInt32)

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
MetaCollection.Switch(UInt32, UInt32)

Trim()

Trims the internal data structures to it's minimum possible size.

Declaration
public void Trim()
Back to top Built by Itinero, MIT licensed.