Utilizing .NET object with multiple array operators

Discussion about the open-source Phalanger [?] project.

Utilizing .NET object with multiple array operators

Postby tommy2d » January 2nd, 2016, 3:47 pm

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?
tommy2d
 
Posts: 1
Joined: January 2nd, 2016, 3:34 pm

Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 3 guests

cron

User Control Panel

Login

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 62 on January 7th, 2012, 10:54 pm

Users browsing this forum: No registered users and 3 guests
Phalanger