Here are the API :http://docs2x.smartfoxserver.com/api-docs/csharp-doc/Index.html
It said, getting the changedVars should be List<string> type,but it alawys occur InvalidCastException.
And ,I using baseEvent.Parmas["changedVars "].GetType() to print what type it is.
The result is ArrayList.
Is it a bug? or API incorrect?
ROOM_VARIABLES_UPDATE Event BUG??
Re: ROOM_VARIABLES_UPDATE Event BUG??
If you use the API under Unity, the returned type is ArrayList; if you use the API natively under Windows 8 / Windows Phone 8, the type is List.
Anyway you can cast to the IList interface, which is implemented by both collections.
We will update the api doc to identify the returned type as IList in the next API update.
Thanks for pointing out.
Anyway you can cast to the IList interface, which is implemented by both collections.
We will update the api doc to identify the returned type as IList in the next API update.
Thanks for pointing out.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Who is online
Users browsing this forum: Google [Bot] and 18 guests