Table of Contents

Class MtPropertyList

Namespace
SharpPluginLoader.Core
Assembly
SharpPluginLoader.Core.dll

Represents a list of properties of an MtObject.

public class MtPropertyList : MtObject, IEnumerable<MtProperty>, IEnumerable
Inheritance
MtPropertyList
Implements
Inherited Members

Constructors

MtPropertyList()

public MtPropertyList()

MtPropertyList(nint)

public MtPropertyList(nint instance)

Parameters

instance nint

Properties

Count

The number of properties in the list.

public uint Count { get; }

Property Value

uint

Remarks

This property is not cached, and will iterate through the list to count the properties.

First

The first property in the list.

public MtProperty? First { get; }

Property Value

MtProperty

this[int]

Gets the property at the specified index.

public MtProperty? this[int index] { get; }

Parameters

index int

Property Value

MtProperty

Properties

Gets all properties in the list.

public MtProperty[] Properties { get; }

Property Value

MtProperty[]

Methods

~MtPropertyList()

protected ~MtPropertyList()

FindProperty(PropType, string)

Finds a property by type and name.

public MtProperty? FindProperty(PropType type, string name)

Parameters

type PropType

The type of the property

name string

The name of the property

Returns

MtProperty

The property, or null if it was not found

FindProperty(string)

Finds a property by name.

public MtProperty? FindProperty(string name)

Parameters

name string

The name of the property to find

Returns

MtProperty

The property, or null if it was not found

FindProperty(uint)

Finds a property by its hash.

public MtProperty? FindProperty(uint hash)

Parameters

hash uint

The hash of the property to find

Returns

MtProperty

The property, or null if it was not found

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<MtProperty> GetEnumerator()

Returns

IEnumerator<MtProperty>

An enumerator that can be used to iterate through the collection.