Table of Contents

Method GetMetadataValue

Namespace
Titipi.MocaLib

GetMetadataValue<T>(string, T)

Returns the metadata value for key, cast to T. Returns defaultValue if the key is not found or the conversion fails.

public static T GetMetadataValue<T>(string key, T defaultValue = default)

Parameters

key string
defaultValue T

Returns

T

Type Parameters

T