File: System\ComponentModel\Design\Serialization\CodeDomLocalizationModel.cs
Web Access
Project: src\src\System.Windows.Forms.Design\src\System.Windows.Forms.Design.csproj (System.Windows.Forms.Design)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace System.ComponentModel.Design.Serialization;
 
/// <summary>
///  Determines the localization model to be used by the CodeDom resource adapter.
/// </summary>
public enum CodeDomLocalizationModel
{
    /// <summary>
    ///  Indicates that the localization provider should ignore localized properties. It
    ///  will still write out resources for objects that do not support code generation and are
    ///  serializable.
    /// </summary>
    None = 0,
 
    /// <summary>
    ///  Indicates that 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 scales poorly
    ///  as the number of properties containing default values grows.
    /// </summary>
    PropertyAssignment = 1,
 
    /// <summary>
    ///  Indicates that 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.
    /// </summary>
    PropertyReflection = 2
}