Bewerken

Delen via


CodeDomLocalizationModel Enum

Definition

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

public enum class CodeDomLocalizationModel
public enum CodeDomLocalizationModel
type CodeDomLocalizationModel = 
Public Enum CodeDomLocalizationModel
Inheritance
CodeDomLocalizationModel

Fields

Name Value Description
None 0

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

PropertyAssignment 1

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.

PropertyReflection 2

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.

Applies to

See also