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
If a global using alias is defined in another file, SA1121 does not produce a warning.
For example, the analyzer will not produce a warning in NoWarning.cs, but in AWarning.cs it does:
GlobalUsings.cs:
global using fp64 = System.Double;
NoWarning.cs:
public class TestWarning
{
private double Method()
{
fp64 x = System.Math.PI;
return x;
}
}
AWarning.cs:
using MyMath = System.Math;
public class TestWarning2
{
private double Method()
{
fp64 x = MyMath.PI;
return x;
}
}