Cirrious.MvvmCross.Plugins.JsonLocalisation.MvxContentJsonDictionaryTextProvider.LoadJsonFromResource C# (CSharp) Method

LoadJsonFromResource() public method

public LoadJsonFromResource ( string namespaceKey, string typeKey, string resourcePath ) : void
namespaceKey string
typeKey string
resourcePath string
return void
        public override void LoadJsonFromResource(string namespaceKey, string typeKey, string resourcePath)
        {
            var service = ResourceLoader;
            var json = service.GetTextResource(resourcePath);
            if (string.IsNullOrEmpty(json))
                throw new FileNotFoundException("Unable to find resource file " + resourcePath);
            LoadJsonFromText(namespaceKey, typeKey, json);
        }
    }