I am working with Photon in Unity now, and in all tutotials I can see that people use ExitGames.Client.Photon.Hashtable
to set customRoomProperties. My question actually is: what are the difference between default C# Hashtable class and photon Hashtable class. And why I should use only Photon Hashtable to set my room properties, if they are both representing a KeyPairValue type?
Asked
Active
Viewed 567 times
2

Michael Rovinsky
- 6,807
- 7
- 15
- 30

Viaceslavus
- 180
- 1
- 8
-
1Photon is expecting their hashtable as the collection type. It is a different type, most likely they have a different implementation based on how they use it. – hijinxbassist Apr 29 '21 at 18:17
-
1Have you tried to press `F12` on it -> yes it is a complete custom implementation! They use an underlying `Dictionary – derHugo Apr 30 '21 at 04:15
-
1We had to come up with as solution since `System.Collections.Hashtable` was not available for UWP/WSA/NET_FX platform(s) in Unity. This "workaround" was kept for backward compatibility I think. – JohnTube May 01 '21 at 02:32