From 5d8f5c9d0a1e8e5fb4391150245b8d8d080df694 Mon Sep 17 00:00:00 2001 From: Kichan Kwon Date: Fri, 15 Sep 2017 11:44:21 +0900 Subject: [PATCH] [Information] Open Tizen.System.SystemInfo class - For xamarin-forms compatibility issue - But, recommend to use Tizen.System.Information class Change-Id: I919327d1ebf75ceccccda80a12f86a3f409e4bac Signed-off-by: Kichan Kwon --- src/Tizen.System.Information/SystemInfo/SystemInfo.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Tizen.System.Information/SystemInfo/SystemInfo.cs b/src/Tizen.System.Information/SystemInfo/SystemInfo.cs index 5c352f0..dccc4ba 100755 --- a/src/Tizen.System.Information/SystemInfo/SystemInfo.cs +++ b/src/Tizen.System.Information/SystemInfo/SystemInfo.cs @@ -19,8 +19,9 @@ using System.ComponentModel; namespace Tizen.System { + [Obsolete("Use class Tizen.System.Information")] [EditorBrowsable(EditorBrowsableState.Never)] - internal static class SystemInfo + public static class SystemInfo { [EditorBrowsable(EditorBrowsableState.Never)] private static Interop.SystemInfo.SystemInfoType GetValueType(string key, out Interop.SystemInfo.SystemInfoValueType valueType) @@ -89,7 +90,7 @@ namespace Tizen.System /// The name of the feature. /// The value of the given feature. /// Returns true on success, otherwise false. - internal static bool TryGetValue(string key, out T value) + public static bool TryGetValue(string key, out T value) { bool res = false; if (typeof(T) == typeof(bool)) @@ -129,7 +130,7 @@ namespace Tizen.System /// The name of the feature. /// The value of the given feature. /// Returns true on success, otherwise false. - internal static bool TryGetValue(string key, out bool value) + public static bool TryGetValue(string key, out bool value) { Interop.SystemInfo.SystemInfoValueType valueType; Interop.SystemInfo.SystemInfoType keyType = GetValueType(key, out valueType); @@ -162,7 +163,7 @@ namespace Tizen.System /// The name of the feature. /// The value of the given feature. /// Returns true on success, otherwise false. - internal static bool TryGetValue(string key, out int value) + public static bool TryGetValue(string key, out int value) { Interop.SystemInfo.SystemInfoValueType valueType; Interop.SystemInfo.SystemInfoType keyType = GetValueType(key, out valueType); @@ -196,7 +197,7 @@ namespace Tizen.System /// The name of the feature. /// The value of the given feature. /// Returns true on success, otherwise false. - internal static bool TryGetValue(string key, out double value) + public static bool TryGetValue(string key, out double value) { Interop.SystemInfo.SystemInfoValueType valueType; Interop.SystemInfo.SystemInfoType keyType = GetValueType(key, out valueType); @@ -230,7 +231,7 @@ namespace Tizen.System /// The name of the feature. /// The value of the given feature. /// Returns true on success, otherwise false. - internal static bool TryGetValue(string key, out string value) + public static bool TryGetValue(string key, out string value) { Interop.SystemInfo.SystemInfoValueType valueType; Interop.SystemInfo.SystemInfoType keyType = GetValueType(key, out valueType); -- 2.7.4