We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
These messages obscure the interesting part, GetMethod:
GetMethod
Prefer typeof(EvaluatorContextDescriptor).GetProperty(nameof(EvaluatorContextDescriptor.IsTopLevelCollectionSource), BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly, null, typeof(bool), Type.EmptyTypes, null).GetMethod.
Prefer typeof(IEnumerator).GetProperty(nameof(IEnumerator.Current), BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly, null, typeof(object), Type.EmptyTypes, null).GetMethod.
The text was updated successfully, but these errors were encountered:
How should we change it? Prefer GetProperty(...).GetMethod?
Prefer GetProperty(...).GetMethod
Sorry, something went wrong.
That looks good to me! No parens for GetMethod though because it's a property.
No branches or pull requests
These messages obscure the interesting part,
GetMethod
:Prefer typeof(EvaluatorContextDescriptor).GetProperty(nameof(EvaluatorContextDescriptor.IsTopLevelCollectionSource), BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly, null, typeof(bool), Type.EmptyTypes, null).GetMethod.
Prefer typeof(IEnumerator).GetProperty(nameof(IEnumerator.Current), BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly, null, typeof(object), Type.EmptyTypes, null).GetMethod.
The text was updated successfully, but these errors were encountered: