Esempio n. 1
0
 public static ModuleSchema FromAssemblyResources(Assembly assembly, string resourceBase, string resourceName) =>
 FromJson(JsonLoader.FromAssemblyResources(assembly, resourceBase).LoadResource(resourceName));
Esempio n. 2
0
        private JObject LoadResourceForTest([CallerMemberName] string resource = null)
        {
            var loader = JsonLoader.FromAssemblyResources(typeof(JsonLoaderTest).Assembly, typeof(JsonLoaderTest).Namespace);

            return(loader.LoadResource($"{resource}.json"));
        }