You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to confirm if I should proceed with updating the XML documentation for the MemberDataAttribute class to encourage the use of the nameof operator for the memberName parameter. Specifically, I would add a recommendation in the <param> tag, such as:
"It is recommended to use the nameof operator to ensure compile-time safety, e.g., nameof(SomeMemberName)."
Please let me know if this approach aligns with the project's guidelines or if additional changes are needed.
Whenever we use
string
properties on attributes intended to point at a member, we should encourage the use ofnameof
rather than hard-coded strings.This includes, at least (please look and see if there are others):
IFactAttribute.SkipUnless
IFactAttribute.SkipWhen
MemberDataAttribute
constructorThe text was updated successfully, but these errors were encountered: