Skip to content

Commit

Permalink
Fix - compatability - mark field setters as obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Feb 14, 2024
1 parent bd7a593 commit 6134c11
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions uSync.BackOffice/Models/OrderedNodeInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ public OrderedNodeInfo(string filename, XElement node, int level, string path, b
/// <summary>
/// the key for the item.
/// </summary>
public Guid Key { get; }
public Guid Key
{
get;
[Obsolete("Setter will be removed v15")]
set;
}

/// <summary>
/// umbraco alias of the item
Expand All @@ -62,12 +67,22 @@ public OrderedNodeInfo(string filename, XElement node, int level, string path, b
/// <summary>
/// path to the actual file.
/// </summary>
public string FileName { get; }
public string FileName
{
get;
[Obsolete("Setter will be removed v15")]
set;
}

/// <summary>
/// the xml for this item.
/// </summary>
public XElement Node { get; private set; }
public XElement Node
{
get;
[Obsolete("Setter will be private from v15")]
set;
}

/// <summary>
/// overwrites the node value for this ordered node element.
Expand Down

0 comments on commit 6134c11

Please sign in to comment.