GR0035: Consider usage of typeof(x) instead of MethodBase.GetCurrentMethod().DeclaringType.
Title | Consider usage of typeof(x) instead of MethodBase.GetCurrentMethod().DeclaringType. |
---|---|
Id | GR0035 |
Category | Maintainability |
Default Severity | Warning |
Enabled By Default | True |
Description | MethodBase.GetCurrentMethod().DeclaringType may be a misuse of establishling type information. typeof(x) allows for compile time verification of the type and avoids reflection. |
Custom Tags |