Skip to content

Commit 31475d2

Browse files
committed
Reintroduced CurrentKey as [Obsolete()]
This will help ensure that implementers get friendlier guidance if they're calling into this property.
1 parent 7a6e7ef commit 31475d2

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

OnTopic.AspNetCore.Mvc/Models/NavigationViewModel{T}.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@ public class NavigationViewModel<T> where T : class, INavigationTopicViewModel<T
6464
/// </para>
6565
/// </remarks>
6666
public string CurrentWebPath { get; set; } = default!;
67+
68+
/*==========================================================================================================================
69+
| CURRENT KEY
70+
\-------------------------------------------------------------------------------------------------------------------------*/
71+
/// <summary>
72+
/// The <see cref="Topic.GetWebPath()"/> representing the path to the current <see cref="Topic"/>.
73+
/// </summary>
74+
/// <inheritdoc cref="CurrentWebPath"/>
75+
[Obsolete("The CurrentKey property has been replaced in favor of CurrentWebPath.", true)]
6776
public string CurrentKey { get; set; } = default!;
6877

6978
} //Class

0 commit comments

Comments
 (0)