DictionaryExtensions
ThaumielMapEditor.API.Extensions
Overview​
Methods​
| Signature | Returns | Description |
|---|---|---|
ConvertTo(Dictionary<string, object>) | T | No description |
GetConvertedValueOrDefault(Dictionary<TKey, TValue>, TKey, T) | T | No description |
GetConvertValue(Dictionary<string, object>, string) | T | No description |
GetValueOrDefault(Dictionary<string, object>, string) | object | No description |
TryConvertTo(Dictionary<string, object>, T&) | bool | No description |
TryConvertValue(Dictionary<TKey, TValue>, TKey, T&) | bool | No description |
TryConvertValue(Dictionary<string, object>, string, T&) | bool | No description |
Methods​
ConvertTo​
ConvertTo
public T ConvertTo(Dictionary<string, object> dict)
Parameters​
| Name | Type | Description |
|---|---|---|
dict | Dictionary<string, object> |
Returns​
T
GetConvertedValueOrDefault​
GetConvertedValueOrDefault
public T GetConvertedValueOrDefault(
Dictionary<TKey, TValue> dict,
TKey key,
T defaultValue
)
Parameters​
| Name | Type | Description |
|---|---|---|
dict | Dictionary<TKey, TValue> | |
key | TKey | |
defaultValue | T |
Returns​
T
GetConvertValue​
GetConvertValue
public T GetConvertValue(
Dictionary<string, object> dict,
string key
)
Parameters​
| Name | Type | Description |
|---|---|---|
dict | Dictionary<string, object> | |
key | string |
Returns​
T
GetValueOrDefault​
GetValueOrDefault
public object GetValueOrDefault(
Dictionary<string, object> dict,
string key
)
Parameters​
| Name | Type | Description |
|---|---|---|
dict | Dictionary<string, object> | |
key | string |
Returns​
object
TryConvertTo​
TryConvertTo
public bool TryConvertTo(
Dictionary<string, object> dict,
T& result
)
Parameters​
| Name | Type | Description |
|---|---|---|
dict | Dictionary<string, object> | |
result | T& |
Returns​
bool
TryConvertValue​
TryConvertValue
public bool TryConvertValue(
Dictionary<TKey, TValue> dict,
TKey key,
T& result
)
Parameters​
| Name | Type | Description |
|---|---|---|
dict | Dictionary<TKey, TValue> | |
key | TKey | |
result | T& |
Returns​
bool
TryConvertValue​
TryConvertValue
public bool TryConvertValue(
Dictionary<string, object> dict,
string key,
T& result
)
Parameters​
| Name | Type | Description |
|---|---|---|
dict | Dictionary<string, object> | |
key | string | |
result | T& |
Returns​
bool