lauromoura pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=5844ab43203f83b79fd33ec3ce96f9cdcd9160f0
commit 5844ab43203f83b79fd33ec3ce96f9cdcd9160f0 Author: Bruno da Silva Belo <brunodasilvab...@gmail.com> Date: Fri Oct 25 13:57:48 2019 -0300 csharp:Using Array.Empty genericmodel. Summary: ref T8421 Reviewers: lauromoura, felipealmeida, YOhoho, segfaultxavi Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8421 Differential Revision: https://phab.enlightenment.org/D10501 --- src/bindings/mono/efl_mono/GenericModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/mono/efl_mono/GenericModel.cs b/src/bindings/mono/efl_mono/GenericModel.cs index cda0647cbc..5f333746f4 100644 --- a/src/bindings/mono/efl_mono/GenericModel.cs +++ b/src/bindings/mono/efl_mono/GenericModel.cs @@ -124,7 +124,7 @@ public class GenericModel<T> : Efl.Object, Efl.IModel if (v.GetValueType().IsContainer()) { var child = (Efl.IModel)v[0]; - T obj = (T)Activator.CreateInstance(typeof(T), new System.Object[] {}); + T obj = (T)Activator.CreateInstance(typeof(T), Array.Empty<object>()); ModelHelper.GetProperties(obj, child); return obj; } --