Class MetadataExtensions
Inherited Members
Namespace: Glitch9
Assembly: Glitch9.dll
Syntax
public static class MetadataExtensions
Methods
| Edit this page View SourceGet<T>(Metadata, string, T)
Declaration
public static T Get<T>(this Metadata metadata, string key, T defaultValue = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Metadata | metadata | |
| string | key | |
| T | defaultValue |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |
Set(Metadata, string, object)
Declaration
public static void Set(this Metadata metadata, string key, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| Metadata | metadata | |
| string | key | |
| object | value |