Page 1 of 1

Utilizing .NET object with multiple array operators

PostPosted: January 2nd, 2016, 3:47 pm
by tommy2d
Hi there,

In my project I encounter a .NET object containing multiple array operators:

Code: Select all
public virtual Object this[string fieldName]
public virtual Object this[int fieldIndex]

When trying to convert this object using php/phalanger, I always end up with the second operator being triggered; when I perform var_dump(array_keys($obj)) this yields numeric keys only.

How can I trigger the first operator instead of the second?