Show / Hide Table of Contents

Class MetaCollection

Abstract representation of a meta collection.

Inheritance
System.Object
MetaCollection
MetaCollection<T>
Inherited Members
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 abstract class MetaCollection

Properties

Count

Gets the # of items in this collection.

Declaration
public abstract long Count { get; }
Property Value
System.Int64

ElementType

Gets the type of the elements in this meta collection.

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

Methods

Copy(UInt32, UInt32)

Copies whatever data is in 'from' to 'to'.

Declaration
public abstract void Copy(uint to, uint from)
Parameters
System.UInt32 to

System.UInt32 from

CopyFrom(MetaCollection, UInt32, UInt32)

Copies an element from the other collection to this one. Collections must have the same type.

Declaration
public abstract void CopyFrom(MetaCollection other, uint idx, uint otherIdx)
Parameters
MetaCollection other

System.UInt32 idx

System.UInt32 otherIdx

Deserialize(Stream, ArrayProfile)

Deserializes a meta-collection from the given stream.

Declaration
public static MetaCollection Deserialize(Stream stream, ArrayProfile profile)
Parameters
Stream stream

ArrayProfile profile

Returns
MetaCollection

DeserializeArray<T>(Stream, ArrayProfile, Int64, Int32)

Deserializes an array.

Declaration
protected static ArrayBase<T> DeserializeArray<T>(Stream stream, ArrayProfile profile, long length, int elementSize)
Parameters
Stream stream

ArrayProfile profile

System.Int64 length

System.Int32 elementSize

Returns
ArrayBase<T>

Type Parameters
T

Equal(UInt32, UInt32)

Returns true if the data in the two given items is identical.

Declaration
public abstract bool Equal(uint item1, uint item2)
Parameters
System.UInt32 item1

System.UInt32 item2

Returns
System.Boolean

GetRaw(UInt32)

Gets the data.

Declaration
public abstract object GetRaw(uint idx)
Parameters
System.UInt32 idx

Returns
System.Object

GetTypeForHeader(Int32)

Returns the type for the given header.

Declaration
protected static Type GetTypeForHeader(int header)
Parameters
System.Int32 header

Returns
Type

GetTypeHeader()

Returns a byte header that describes the type.

Declaration
protected byte GetTypeHeader()
Returns
System.Byte

Serialize(Stream)

Serializes the meta collection to the given stream.

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

Returns
System.Int64

SetEmpty(UInt32)

Sets the item to the default empty value.

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

Switch(UInt32, UInt32)

Switches the two items around.

Declaration
public abstract void Switch(uint item1, uint item2)
Parameters
System.UInt32 item1

System.UInt32 item2

VerifyType()

Verifies if the current element type is supported.

Declaration
protected void VerifyType()
Back to top Built by Itinero, MIT licensed.