I have 2 questions:
1. what is Viewcontext and what are its advantages?
2. why we have to use it in tag helpers?
Actually i am the beginner and follow the "Pro ASP.NET Core MVC,6th Edition" by adam freeman in this he make a taghelper class in which he uses
[ViewContext]
[HtmlAttributeNotBound]
public ViewContext ViewContext { get; set; }
He didn't explain the above piece of code why he uses these properties in square brackets purpose of these properties. And please share a link which describe about these type of properties if any