3 using System.Reflection;
6 namespace Tizen.NUI.Binding.Internals
8 internal static class ResourceLoader
10 static Func<AssemblyName, string, string> resourceProvider = (asmName, path) =>
12 string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
13 path = resource + path;
15 string ret = File.ReadAllText(path);
19 //takes a resource path, returns string content
20 public static Func<AssemblyName, string, string> ResourceProvider {
21 get => resourceProvider;
23 DesignMode.IsDesignModeEnabled = true;
24 resourceProvider = value;
28 internal static Action<Exception> ExceptionHandler { get; set; }