mardi 3 juin 2014

How to use a localized string inside a static method


Vote count:

0




I have to use a translated string into a static method, but it doesn't let me use the keyword 'this'.


My code is something like the following:



public static async Task<string> UtilityMethod(){

[...]

this.resourceLoader.GetString("LocalizedString")

[...]

}


How can I do?



asked 43 secs ago






Aucun commentaire:

Enregistrer un commentaire