Show / Hide Table of Contents

Class AttributesIndex

An index for attribute collections.

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

Constructors

AttributesIndex(AttributesIndexMode)

Creates a new empty index.

Declaration
public AttributesIndex(AttributesIndexMode mode = AttributesIndexMode.ReverseAll)
Parameters
AttributesIndexMode mode

AttributesIndex(MemoryMap, AttributesIndexMode)

Creates a new index.

Declaration
public AttributesIndex(MemoryMap map, AttributesIndexMode mode = AttributesIndexMode.ReverseAll)
Parameters
MemoryMap map

AttributesIndexMode mode

Properties

CheckDuplicates

Returns true if this index checks for duplicates.

Declaration
public bool CheckDuplicates { get; }
Property Value
System.Boolean

Count

Gets the number of collections.

Declaration
public uint Count { get; }
Property Value
System.UInt32

IndexMode

Returns the index mode.

Declaration
public AttributesIndexMode IndexMode { get; }
Property Value
AttributesIndexMode

IsReadonly

Returns true if this index is readonly.

Declaration
public bool IsReadonly { get; }
Property Value
System.Boolean

Methods

Add(IAttributeCollection)

Adds new attributes.

Declaration
public uint Add(IAttributeCollection tags)
Parameters
IAttributeCollection tags

Returns
System.UInt32

Deserialize(Stream, Boolean, AttributesIndexMode)

Deserializes a tags index from the given stream.

Declaration
public static AttributesIndex Deserialize(Stream stream, bool copy = false, AttributesIndexMode defaultIndexMode = AttributesIndexMode.ReverseStringIndexKeysOnly)
Parameters
System.IO.Stream stream

System.Boolean copy

AttributesIndexMode defaultIndexMode

Returns
AttributesIndex

Get(UInt32)

Returns the attributes that belong to the given id.

Declaration
public IAttributeCollection Get(uint tagsId)
Parameters
System.UInt32 tagsId

Returns
IAttributeCollection

Serialize(Stream)

Serializes this tags index to the given stream.

Declaration
public long Serialize(Stream stream)
Parameters
System.IO.Stream stream

Returns
System.Int64

Back to top Built by Itinero, MIT licensed.