Extension methode compilation issue

Hi,

When I run the linq command: Where(function(s) not s.IsNullOrWhiteSpace)
I get the message:

Overload resolution failed because no accessible ‘IsNullOrWhileSpace’ is most specific for these arguments:
Extension method ‘Public Funcion IsNullOrWhiteSpace() As Boolean’ defined in System.Extensions: Not most specific
Extension method ‘Public Funcion IsNullOrWhiteSpace() As Boolean’ defined in UiPath.Core.Utils: Not most specific

Any Idea how to enfore the system.extensions one?

1 Like

Hi @tdhaene

Late answer, but you should try like this:

1 Like

Hi,

Indeed that’s works. The strange thing is. It existed as an extension method in 2018.1.1 but no Longer in 2018.2.3.

But using the string class certainly do thé job.

Thx

I’ve seen a comment somewhere on the forum that some methods do not accept empty arguments anymore and it might be it (that comment gave me an idea to reverse your syntax a bit).

Something to keep in mind I guess.

2 Likes