From 0acd0b24dc73407d30c3cccb751286d8b8a94a82 Mon Sep 17 00:00:00 2001 From: JongHeonChoi Date: Tue, 7 Apr 2020 17:52:21 +0900 Subject: [PATCH] [Information] Added preload method for optimization (#1493) --- src/Tizen.System.Information/Common/Information.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Tizen.System.Information/Common/Information.cs b/src/Tizen.System.Information/Common/Information.cs index b9f2b17..62a01aa 100644 --- a/src/Tizen.System.Information/Common/Information.cs +++ b/src/Tizen.System.Information/Common/Information.cs @@ -16,6 +16,7 @@ using System; using System.Collections.Generic; +using System.ComponentModel; namespace Tizen.System { @@ -191,5 +192,13 @@ namespace Tizen.System RuntimeInfo.UnsetCallback(runtimeFeature, callback); } + + // for internal use only + [EditorBrowsable(EditorBrowsableState.Never)] + static void Preload() + { + TryGetValue("http://tizen.org/feature/screen.width", out int width); + TryGetValue("http://tizen.org/feature/screen.height", out int height); + } } } -- 2.7.4