[Request new feature] Use C# enum:byte as a key of HashTable

Options
I want to use enum:byte as a key for a HashTable. Ofcourse,, i dont want to write too much like: (byte)E.A ...
I want to write directly "E.A" as a key !
Example code:

public enum E : byte
{
A
}

public void Foo()
{
// Raise event
var hash = new Hashtable();
hash[E.A] = "This is the value of hash !";
PhotonNetwork.RaiseEvent(0, hash,
new RaiseEventOptions { Receivers = ReceiverGroup.All, CachingOption = EventCaching.AddToRoomCache },
SendOptions.SendReliable);
}

public void OnEvent(EventData photonEvent)
{
if (photonEvent.Code >= 200) return;

var hash = photonEvent.CustomData as Hashtable;
var value = hash[E.A]; // Because "E" is enum:byte so it should automatically be converted to byte
print("value= " + value); // Here it is null . But why ???
}

Comments