0
Add enum value in runtime?
Ex: enum Weapons {Knife, Gun, Grenade}; Then, i want to add Bazooka to it, so that Weapons.Bazooka is valid. Is it possible?
2 odpowiedzi
+ 2
+ 2
Just add it to the enum if you know you want to use Bazooka.
Ex: enum Weapons {Knife, Gun, Grenade}; Then, i want to add Bazooka to it, so that Weapons.Bazooka is valid. Is it possible?