diff options
author | Bruno da Silva Belo <brunodasilvabelo@gmail.com> | 2019-10-25 13:57:48 -0300 |
---|---|---|
committer | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2019-10-25 14:23:12 -0300 |
commit | 5844ab43203f83b79fd33ec3ce96f9cdcd9160f0 (patch) | |
tree | 87b8f639d7b557537dfa383c295ca30156c0ea20 /src/bindings | |
parent | e17213a09ba5da543bb951492ec2aca7f0af7656 (diff) | |
download | efl-5844ab43203f83b79fd33ec3ce96f9cdcd9160f0.tar.gz |
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
Diffstat (limited to 'src/bindings')
-rw-r--r-- | src/bindings/mono/efl_mono/GenericModel.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |