I have an enum class as follows:
namespace Import.DataObjects
{
internal enum EmploymentStatus
{
FullTime,
Terminated,
}
}
As of right now I am calling a method in Main to set this enum. The problem is, when I am done setting the enum and the method that sets it ends, the enum is blank again. How do I retain the values in the enum throughout the app using this method?
Enum-typed variables don’t magically change their values. Here’s an example of how to use them.