JsonModuleInitialize Method

Initializes the KGySoft.Json module. It initializes the resource manager for string resources and registers its central management in the LanguageSettings class.


Namespace: KGySoft.Json
Assembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
public static void Initialize()



The module initializer is executed automatically when any member is accessed in the module for the first time. This method is public to able to trigger module initialization without performing any other operation. Normally you don't need to call it explicitly but it can be useful if you use the KGySoft JSON Libraries in an application and you want to configure resource management on starting the application via the LanguageSettings class. In such case you can call this method before configuring language settings to make sure that the resources of the KGySoft.Json.dll are also affected by the settings.

See Also