Get Configuration (GetConfig)
Dynamically retrieve configuration values.If you have not successfully called UpdateConfig to set the value for a certain key, the value from the ini file will be returned; otherwise, the dynamically set value will be returned.
Function Definition
public static T GetConfig<T>(string key, T defValue, string project = "INTL")
Input Parameters
| Parameters | Type | Explanation |
|---|---|---|
| key | String | Key for the configuration |
| defValue | T | Return value if retrieval fails, not mandatory |
| project | string | Default parameter, remains unchanged |
Code sample
INTLAPI.GetConfig<string>("KEY", "");