Normally all reference types are garbage collected when it is having no reference. What about a enum variable? will it be garbage collected even if it is out of scope(means it is not referenced more)?
Normally all reference types are garbage collected when it is having no reference. What
Share
An enum is a value type variable so it is automatically
releasedforgotten when it falls out of scope.