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}"); }