[NUI]Add static constructor to confirm the static dictionary will be created befor...
authorAdunFang <30402408+AdunFang@users.noreply.github.com>
Fri, 18 Sep 2020 05:54:26 +0000 (13:54 +0800)
committerGitHub <noreply@github.com>
Fri, 18 Sep 2020 05:54:26 +0000 (14:54 +0900)
Co-authored-by: Fang Xiaohui <xiaohui fang>
Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
src/Tizen.NUI/src/public/XamlBinding/BindableProperty.cs

index d536149..3637fea 100755 (executable)
@@ -100,6 +100,11 @@ namespace Tizen.NUI.Binding
         /// <param name="value">The default value.</param>
         /// <returns>System.Boolean</returns>
         public delegate bool ValidateValueDelegate<in TPropertyType>(BindableObject bindable, TPropertyType value);
+               
+        //To confirm the static dictionary will be created before the constructor is called.
+        static BindableProperty()
+        {
+        }
 
         static readonly Dictionary<Type, TypeConverter> WellKnownConvertTypes = new  Dictionary<Type,TypeConverter>
         {