From: Kichan Kwon Date: Fri, 15 Sep 2017 02:44:21 +0000 (+0900) Subject: [Information] Open Tizen.System.SystemInfo class X-Git-Tag: preview1-00207^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F66%2F150266%2F1;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [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 --- 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);