Struct Metadata.Entry
Represents an entry in a metadata container.
Implements
Inherited Members
Namespace: SharpAssimp
Assembly: SharpAssimp.dll
Syntax
public readonly record struct Metadata.Entry : IEquatable<Metadata.Entry>
Constructors
| Edit this page View SourceEntry(MetaDataType, object)
Represents an entry in a metadata container.
Declaration
public Entry(MetaDataType DataType, object Data)
Parameters
Type | Name | Description |
---|---|---|
MetaDataType | DataType | Type of metadata. |
object | Data | Metadata data stored in this entry. |
Properties
| Edit this page View SourceData
Metadata data stored in this entry.
Declaration
public object Data { get; init; }
Property Value
Type | Description |
---|---|
object |
DataType
Type of metadata.
Declaration
public MetaDataType DataType { get; init; }
Property Value
Type | Description |
---|---|
MetaDataType |
Methods
| Edit this page View SourceDataAs<T>()
Gets the data as the specified type. If it cannot be casted to the type, then null is returned.
Declaration
public T? DataAs<T>() where T : struct
Returns
Type | Description |
---|---|
T? | Casted data or null. |
Type Parameters
Name | Description |
---|---|
T | Type to cast the data to. |