Suppress CS0618 warnings that is caused by obsolete of SystemInfo.
Remove unnecessary EditorBrowable attributes because hiding APIs is
needed for only public classes or methods.
Change-Id: I11643b111800078362fd53ecf297c16b0ced7c8d
using System;
using System.Collections.Generic;
-using System.ComponentModel;
-using System.IO;
namespace Tizen.System
{
[RuntimeInfoKey.AudioJackConnector] = RuntimeInfoStringKeyAudioJackType
};
- [EditorBrowsable(EditorBrowsableState.Never)]
private static bool ConvertStringToRuntimeInfoKey(string key, out RuntimeInfoKey feature)
{
string filteredKey = key.StartsWith(HttpPrefix) ? key.Substring(HttpPrefix.Length) : key;
return StringEnumMapping.TryGetValue(filteredKey, out feature);
}
- [EditorBrowsable(EditorBrowsableState.Never)]
private static bool TryGetRuntimeInfoValue<T>(RuntimeInfoKey key, out T value)
{
value = default(T);
return RuntimeInfo.TryGetValue<T>(key, out value);
}
- [EditorBrowsable(EditorBrowsableState.Never)]
+#pragma warning disable CS0618 // Type or member is obsolete
private static bool TryGetSystemInfoValue<T>(string key, out T value)
{
value = default(T);
return SystemInfo.TryGetValue<T>(key, out value);
}
+#pragma warning restore CS0618 // Type or member is obsolete
/// <summary>
/// Gets the value of the feature.
using System;
using System.IO;
-using System.ComponentModel;
using Tizen.Internals.Errors;
namespace Tizen.System
{
- [EditorBrowsable(EditorBrowsableState.Never)]
internal enum InformationError
{
None = ErrorCode.None,
NoData = ErrorCode.NoData
}
- [EditorBrowsable(EditorBrowsableState.Never)]
internal static class InformationErrorFactory
{
internal const string LogTag = "Tizen.System.Information";
* limitations under the License.
*/
-using System.ComponentModel;
-
namespace Tizen.System
{
- [EditorBrowsable(EditorBrowsableState.Never)]
/// <summary>
/// Enumeration for the runtime information key.
/// </summary>
using System;
using System.Collections.Generic;
-using System.IO;
-using System.ComponentModel;
namespace Tizen.System
{
- [EditorBrowsable(EditorBrowsableState.Never)]
internal static class RuntimeInfo
{
private static RuntimeInfoEventHandler BluetoothEnabled = new RuntimeInfoEventHandler(RuntimeInfoKey.Bluetooth);
*/
using System;
-using System.ComponentModel;
namespace Tizen.System
{
- [EditorBrowsable(EditorBrowsableState.Never)]
internal class RuntimeInfoEventHandler
{
private RuntimeInfoKey Key;
using System;
using System.Collections.Generic;
-using System.ComponentModel;
namespace Tizen.System
{
- [EditorBrowsable(EditorBrowsableState.Never)]
internal static class TvProductHelper
{
private static int is_TV_product = -1;
if (is_TV_product == -1)
{
+#pragma warning disable CS0618 // Type or member is obsolete
is_key_existed = SystemInfo.TryGetValue<string>("http://com.samsung/build_config/product_type", out profile);
+#pragma warning restore CS0618 // Type or member is obsolete
if (is_key_existed && String.Compare(profile, "TV") == 0)
{
is_TV_product = 1;