lauromoura pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=e17213a09ba5da543bb951492ec2aca7f0af7656

commit e17213a09ba5da543bb951492ec2aca7f0af7656
Author: Bruno da Silva Belo <[email protected]>
Date:   Fri Oct 25 13:08:37 2019 -0300

    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<Value>, 
IEquatable<Value>
             }
 
             Type[] genericArguments = objType.GetGenericArguments();
-            if (genericArguments.Count() != 1)
+            if (genericArguments.Length != 1)
             {
                 throw new ArgumentException($"Unsupported type for direct 
construction: {objType}");
             }

-- 


Reply via email to