csharp: Using Count eina_promises.

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/D10498
This commit is contained in:
Bruno da Silva Belo 2019-10-25 13:06:59 -03:00 committed by Lauro Moura
parent 827a301131
commit 68eefe1872
1 changed files with 2 additions and 2 deletions

View File

@ -380,11 +380,11 @@ public class Future
{
SanityChecks();
System.Collections.Generic.IList<ResolvedCb> cbsList = cbs.ToList();
FutureDesc[] descs = new FutureDesc[cbsList.Count() + 1]; // +1 due to the null-cb terminating descriptor.
FutureDesc[] descs = new FutureDesc[cbsList.Count + 1]; // +1 due to the null-cb terminating descriptor.
int i = 0;
try
{
for (; i < cbsList.Count(); i++)
for (; i < cbsList.Count; i++)
{
ResolvedCb cb = cbsList[i];
descs[i].cb = NativeResolvedCbDelegate;