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
Using C#11 native ints, the rule is not raising an issue.
Repro steps
usingSystem;intx=2;nintn=2;nuintnu=2;IntPtrintPtr=2;UIntPtruintPtr=2;n.ToInt32();// Compliant, FN, pure functionnu.ToUInt32();// Compliant, FN, pure functionintPtr.ToInt64();// Compliant, FN, pure functionuintPtr.ToUInt64();// Compliant, FN, pure function
unsafe
{n.ToPointer();// Compliant, FN, pure functionintPtr.ToPointer();// Compliant, FN, pure functionnu.ToPointer();// Compliant, FN, pure functionuintPtr.ToPointer();// Compliant, FN, pure functionx.ToString();// Noncompliant}
Expected behavior
The rule should raise an issue.
Actual behavior
The rule does not raise an issue.
The text was updated successfully, but these errors were encountered:
Description
FN for S2201 (ReturnValueIgnored).
Using C#11 native ints, the rule is not raising an issue.
Repro steps
Expected behavior
The rule should raise an issue.
Actual behavior
The rule does not raise an issue.
The text was updated successfully, but these errors were encountered: