Show / Hide Table of Contents

Class MetaCollectionDb

An edge meta collections db.

Inheritance
System.Object
MetaCollectionDb
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 sealed class MetaCollectionDb

Constructors

MetaCollectionDb()

Creates a new edge meta collection db.

Declaration
public MetaCollectionDb()

Properties

Names

Gets the meta collection names.

Declaration
public IEnumerable<string> Names { get; }
Property Value
IEnumerable<System.String>

Methods

Add(String, Type)

Adds a new meta collection.

Declaration
public MetaCollection Add(string name, Type type)
Parameters
System.String name

Type type

Returns
MetaCollection

AddDouble(String)

Adds a new meta collection.

Declaration
public MetaCollection<double> AddDouble(string name)
Parameters
System.String name

Returns
MetaCollection<System.Double>

AddInt16(String)

Adds a new meta collection.

Declaration
public MetaCollection<short> AddInt16(string name)
Parameters
System.String name

Returns
MetaCollection<System.Int16>

AddInt32(String)

Adds a new meta collection.

Declaration
public MetaCollection<int> AddInt32(string name)
Parameters
System.String name

Returns
MetaCollection<System.Int32>

AddInt64(String)

Adds a new meta collection.

Declaration
public MetaCollection<long> AddInt64(string name)
Parameters
System.String name

Returns
MetaCollection<System.Int64>

AddSingle(String)

Adds a new meta collection.

Declaration
public MetaCollection<float> AddSingle(string name)
Parameters
System.String name

Returns
MetaCollection<System.Single>

AddUInt16(String)

Adds a new meta collection.

Declaration
public MetaCollection<ushort> AddUInt16(string name)
Parameters
System.String name

Returns
MetaCollection<System.UInt16>

AddUInt32(String)

Adds a new meta collection.

Declaration
public MetaCollection<uint> AddUInt32(string name)
Parameters
System.String name

Returns
MetaCollection<System.UInt32>

AddUInt64(String)

Adds a new meta collection.

Declaration
public MetaCollection<ulong> AddUInt64(string name)
Parameters
System.String name

Returns
MetaCollection<System.UInt64>

Clear()

Removes all data.

Declaration
public void Clear()

Copy(UInt32, UInt32)

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

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

System.UInt32 from

Deserialize(Stream, ArrayProfile)

Deserializes a db.

Declaration
public static MetaCollectionDb Deserialize(Stream stream, ArrayProfile profile = null)
Parameters
Stream stream

ArrayProfile profile

Returns
MetaCollectionDb

Get(String)

Tries to get an edge meta collection for the given key.

Declaration
public MetaCollection Get(string name)
Parameters
System.String name

Returns
MetaCollection

Get<T>(String)

Tries to get an edge meta collection for the given key.

Declaration
public MetaCollection<T> Get<T>(string name)where T : struct
Parameters
System.String name

Returns
MetaCollection<T>

Type Parameters
T

GetType(String)

Gets the type of the collection with the given name.

Declaration
public Type GetType(string name)
Parameters
System.String name

Returns
Type

Serialize(Stream)

Serializes this db.

Declaration
public long Serialize(Stream stream)
Parameters
Stream stream

Returns
System.Int64

SetEmpty(UInt32)

Sets the item to the default empty value.

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

Switch(UInt32, UInt32)

Switches the two items around.

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

System.UInt32 item2

TryGet(String, out MetaCollection)

Tries to get an edge meta collection for the given key.

Declaration
public bool TryGet(string name, out MetaCollection metaCollection)
Parameters
System.String name

MetaCollection metaCollection

Returns
System.Boolean

TryGet<T>(String, out MetaCollection<T>)

Tries to get an edge meta collection for the given key.

Declaration
public bool TryGet<T>(string name, out MetaCollection<T> metaCollection)where T : struct
Parameters
System.String name

MetaCollection<T> metaCollection

Returns
System.Boolean

Type Parameters
T

Back to top Built by Itinero, MIT licensed.