Class SyncAttribute
Automatically add this member variable or property to the list of synced bindings in CoherenceSync.
Variables and properties without this attribute can still be synced by selecting them manually in the bindings configuration window.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public sealed class SyncAttribute : Attribute
- Inheritance
-
SyncAttribute
Constructors
SyncAttribute()
public SyncAttribute()
SyncAttribute(string)
public SyncAttribute(string oldName = null)
Parameters
oldName
string
Properties
NoInterpolation
Set this to true if you want binding to have None interpolation. Otherwise it will be the Default interpolation. (It can still be changed in the bindings configuration window.)
[Obsolete("Default interpolation was changed to be None, so this property is useless now.")]
[Deprecated("06/04/2023", 1, 0, 0, Reason = "Default interpolation was changed to be None, so this property is useless now.")]
public bool NoInterpolation { get; set; }
Property Value
OldName
Used for migration purposes. Bindings whose name match OldName will be updated to the new target member.
public string OldName { get; }