Can I generate a static variable with code? I have a class that has a static dictionary that maps ids to names