A switch statement can't be "populated", it's hard coded. Please explain what it is you want to do and we can help you come up with an appropriate solution :)