CodeDomLocalizationModel Enumeration


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Determines the localization model to be used by the CodeDom resource adapter.

Namespace:   System.ComponentModel.Design.Serialization
Assembly:  System.Design (in System.Design.dll)

public enum CodeDomLocalizationModel

Member nameDescription

The localization provider should ignore localized properties. It will still write out resources for objects that do not support code generation and are serializable.


The localization provider will write out localized properties by assigning a resource to each property. This model is fast when the number of properties is small, but it scales poorly as the number of properties containing default values grows.


The localization provider will write localized property values into a resource file and use the ComponentResourceManager class to reflect on properties by name to fill them at runtime. This uses reflection at runtime so it can be slow, but it scales better for large numbers of properties with default values.

.NET Framework
Available since 2.0
Return to top