We're updating the issue view to help you get more done. 

Call to EnumerationGlobalizationServiceExtensions.GetEnumerationValueDisplayName() causes Boxing

Description

When EnumerationGlobalizationServiceExtensions.GetEnumerationValueDisplayName() is called the given Enum Parameter must be boxed. This can be observer when looking at the IL Code.

Given C# Example:

And the given IL Code for the call to GetAvailableEnumDisplayNames()

At first glance this seems strange because the parameter is of type Enum which is a value type. But since a parameter of type Enum can be null an value type can't, boxing must occur. Since this method is called in our context many many times during one page lifecycle it would be nice for the garbage collector to have a way to avoid this.

Status

Assignee

Michael Ketting

Reporter

Matthias Rohrmoser

Labels

Components

Fix versions

Priority

Normal
Configure