[Information] Open Tizen.System.SystemInfo class 66/150266/1
authorKichan Kwon <k_c.kwon@samsung.com>
Fri, 15 Sep 2017 02:44:21 +0000 (11:44 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Fri, 15 Sep 2017 02:50:56 +0000 (11:50 +0900)
- For xamarin-forms compatibility issue
- But, recommend to use Tizen.System.Information class

Change-Id: I919327d1ebf75ceccccda80a12f86a3f409e4bac
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
src/Tizen.System.Information/SystemInfo/SystemInfo.cs

index 5c352f0..dccc4ba 100755 (executable)
@@ -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
         /// <param name="key">The name of the feature.</param>
         /// <param name="value">The value of the given feature.</param>
         /// <returns>Returns true on success, otherwise false.</returns>
-        internal static bool TryGetValue<T>(string key, out T value)
+        public static bool TryGetValue<T>(string key, out T value)
         {
             bool res = false;
             if (typeof(T) == typeof(bool))
@@ -129,7 +130,7 @@ namespace Tizen.System
         /// <param name="key">The name of the feature.</param>
         /// <param name="value">The value of the given feature.</param>
         /// <returns>Returns true on success, otherwise false.</returns>
-        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
         /// <param name="key">The name of the feature.</param>
         /// <param name="value">The value of the given feature.</param>
         /// <returns>Returns true on success, otherwise false.</returns>
-        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
         /// <param name="key">The name of the feature.</param>
         /// <param name="value">The value of the given feature.</param>
         /// <returns>Returns true on success, otherwise false.</returns>
-        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
         /// <param name="key">The name of the feature.</param>
         /// <param name="value">The value of the given feature.</param>
         /// <returns>Returns true on success, otherwise false.</returns>
-        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);