[MediaContent] Fix description of Delete method (#866)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI.Xaml / src / public / XamlBinding / UriTypeConverter.cs
1 using System;
2 using System.ComponentModel;
3
4 namespace Tizen.NUI.XamlBinding
5 {
6     /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
7     [EditorBrowsable(EditorBrowsableState.Never)]
8     [Xaml.ProvideCompiled("Tizen.NUI.XamlC.UriTypeConverter")]
9     [Xaml.TypeConversion(typeof(Uri))]
10     public class UriTypeConverter : TypeConverter
11     {
12         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
13         [EditorBrowsable(EditorBrowsableState.Never)]
14         public override object ConvertFromInvariantString(string value)
15         {
16             if (string.IsNullOrWhiteSpace(value))
17                 return null;
18             return new Uri(value, UriKind.RelativeOrAbsolute);
19         }
20
21         bool CanConvert(Type type)
22         {
23             if (type == typeof(string))
24                 return true;
25             if (type == typeof(Uri))
26                 return true;
27
28             return false;
29         }
30     }
31 }