Search Results for

    Show / Hide Table of Contents
    View Source

    Class DoNotCloneAttribute

    Used to attribute properties that have a setter and are a reference type that should be ignored for cloning when using the DeepCloneHelper

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public class DoNotCloneAttribute : Attribute
    Remarks

    This attribute must be used:

    • when the property is backed by a field but the result of the property is the un-natural data stored in the field This attribute should not be used:
    • when the property is virtual
    • when the setter performs additional required logic other than just setting the underlying field
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX