Our Application is an MVC Application . I tried to run code analysis using ReSharper. I am getting "Auto-property accessor is never used" as warnings in many of my view model properties.
For example, ReSharper shows the warning on this:
public bool IsLegalEntry { get; set; }
Can I make a private setter, or can anybody suggest an alternative?
You could make the setter private
However, this could cause a runtime error if the setter is used implicitly. Alternatively you could decorate the setter with the
JetBrains.Annotations.UsedImplicitlyAttribute.