From e17213a09ba5da543bb951492ec2aca7f0af7656 Mon Sep 17 00:00:00 2001 From: Bruno da Silva Belo Date: Fri, 25 Oct 2019 13:08:37 -0300 Subject: [PATCH] csharp: Changing Count() to Length on eina_value. Summary: ref T8422 Reviewers: lauromoura, felipealmeida, YOhoho, segfaultxavi Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8422 Differential Revision: https://phab.enlightenment.org/D10499 --- src/bindings/mono/eina_mono/eina_value.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/mono/eina_mono/eina_value.cs b/src/bindings/mono/eina_mono/eina_value.cs index 636a7b5012..35c85c83ac 100644 --- a/src/bindings/mono/eina_mono/eina_value.cs +++ b/src/bindings/mono/eina_mono/eina_value.cs @@ -1293,7 +1293,7 @@ public class Value : IDisposable, IComparable, IEquatable } Type[] genericArguments = objType.GetGenericArguments(); - if (genericArguments.Count() != 1) + if (genericArguments.Length != 1) { throw new ArgumentException($"Unsupported type for direct construction: {objType}"); }