summaryrefslogtreecommitdiff
path: root/src/bindings/mono/eo_mono
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-10-16 10:39:52 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-10-16 10:46:23 -0300
commitee33f93743b41c82543f8857e72e38e60a5cd67f (patch)
treecb8d83d751c463a04335bc6c990b09b4e83cce31 /src/bindings/mono/eo_mono
parent50d318ab13a68e3333de5934eb4e1799be62dcb4 (diff)
mono: make public static field const or readonly
Summary: This patch will fix CA2211 compiler warnings. Test Plan: meson setup -Dbindings=mono,cxx -Dmono-beta=true Reviewers: lauromoura, Jaehyun_Cho Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10423
Diffstat (limited to 'src/bindings/mono/eo_mono')
-rw-r--r--src/bindings/mono/eo_mono/iwrapper.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bindings/mono/eo_mono/iwrapper.cs b/src/bindings/mono/eo_mono/iwrapper.cs
index ae39b61..cc9e47e 100644
--- a/src/bindings/mono/eo_mono/iwrapper.cs
+++ b/src/bindings/mono/eo_mono/iwrapper.cs
@@ -36,12 +36,12 @@ public class Globals
36 36
37 [return: MarshalAs(UnmanagedType.U1)] 37 [return: MarshalAs(UnmanagedType.U1)]
38 public delegate bool efl_object_init_delegate(); 38 public delegate bool efl_object_init_delegate();
39 public static FunctionWrapper<efl_object_init_delegate> efl_object_init_ptr = 39 public static readonly FunctionWrapper<efl_object_init_delegate> efl_object_init_ptr =
40 new FunctionWrapper<efl_object_init_delegate>(efl.Libs.EoModule, "efl_object_init"); 40 new FunctionWrapper<efl_object_init_delegate>(efl.Libs.EoModule, "efl_object_init");
41 public static bool efl_object_init() => efl_object_init_ptr.Value.Delegate(); 41 public static bool efl_object_init() => efl_object_init_ptr.Value.Delegate();
42 42
43 public delegate void efl_object_shutdown_delegate(); 43 public delegate void efl_object_shutdown_delegate();
44 public static FunctionWrapper<efl_object_shutdown_delegate> efl_object_shutdown_ptr = new FunctionWrapper<efl_object_shutdown_delegate>(efl.Libs.EoModule, "efl_object_shutdown"); 44 public static readonly FunctionWrapper<efl_object_shutdown_delegate> efl_object_shutdown_ptr = new FunctionWrapper<efl_object_shutdown_delegate>(efl.Libs.EoModule, "efl_object_shutdown");
45 public static void efl_object_shutdown() => efl_object_shutdown_ptr.Value.Delegate(); 45 public static void efl_object_shutdown() => efl_object_shutdown_ptr.Value.Delegate();
46 // [DllImport(efl.Libs.Eo)] public static extern void efl_object_shutdown(); 46 // [DllImport(efl.Libs.Eo)] public static extern void efl_object_shutdown();
47 47
@@ -996,10 +996,10 @@ public static class ClassRegister
996 typeFromKlass[klassPtr] = objectType; 996 typeFromKlass[klassPtr] = objectType;
997 } 997 }
998 998
999 public static System.Collections.Concurrent.ConcurrentDictionary<System.Type, System.IntPtr> klassFromType 999 public static readonly System.Collections.Concurrent.ConcurrentDictionary<System.Type, System.IntPtr> klassFromType
1000 = new System.Collections.Concurrent.ConcurrentDictionary<System.Type, System.IntPtr>(); 1000 = new System.Collections.Concurrent.ConcurrentDictionary<System.Type, System.IntPtr>();
1001 1001
1002 public static System.Collections.Concurrent.ConcurrentDictionary<System.IntPtr, System.Type> typeFromKlass 1002 public static readonly System.Collections.Concurrent.ConcurrentDictionary<System.IntPtr, System.Type> typeFromKlass
1003 = new System.Collections.Concurrent.ConcurrentDictionary<System.IntPtr, System.Type>(); 1003 = new System.Collections.Concurrent.ConcurrentDictionary<System.IntPtr, System.Type>();
1004 1004
1005 private static readonly object klassAllocLock = new object(); 1005 private static readonly object klassAllocLock = new object();