Class CloneablePropertyAttribute
Specifies whether a property should be cloned.
Inheritance
System.Object
CloneablePropertyAttribute
Assembly: Syncfusion.GridCommon.WPF.dll
Syntax
public sealed class CloneablePropertyAttribute : Attribute
Constructors
CloneablePropertyAttribute(Boolean)
Declaration
public CloneablePropertyAttribute(bool cloneableProperty)
Parameters
Type |
Name |
Description |
System.Boolean |
cloneableProperty |
langword_csharp_True if a property should be should be cloned if the assigned object implements ICloneable; langword_csharp_False otherwise. The default is langword_csharp_True
|
Fields
Default
The default setting for this attribute.
Declaration
public static readonly CloneablePropertyAttribute Default
Field Value
No
Specifies that a property should never be cloned even if the assigned object implements ICloneable
This static field is Read-only.
Declaration
public static readonly CloneablePropertyAttribute No
Field Value
Yes
Specifies that a property should be cloned if the assigned object implements ICloneable.
This static field is Read-only.
Declaration
public static readonly CloneablePropertyAttribute Yes
Field Value
Properties
CloneableProperty
Indicates whether a property should be cloned if the assigned object implements ICloneable.
Declaration
public bool CloneableProperty { get; }
Property Value
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
IsCloneableProperty(PropertyInfo)
Declaration
public static bool IsCloneableProperty(PropertyInfo info)
Parameters
Type |
Name |
Description |
System.Reflection.PropertyInfo |
info |
A System.Reflection.PropertyInfo
|
Returns
IsDefaultAttribute()
Declaration
public override bool IsDefaultAttribute()
Returns
See Also