[256] Attribute usage Follow
I've noticed in build 265 (and perhaps in previous
builds), when I apply an attribute to a method ReSharper adds a using alias
instead of employing the existing using statements. As an example, I have a
class that has the following basic code:
using System.Net;
public class X
{
public void Connect(EndPoint
endPoint)
{
}
}
If I add SocketsPermissionAttribute to the Connect
method, ReSharper turns it into an alias:
using System.Net;
using
Net_SocketPermission=System.Net.SocketPermission;
public class X
{
[Net_SocketPermission(EndPoint
endPoint)]
public void
Connect()
{
}
}
I should also mention that I have "Allow alias
using directive" turned off.
Please sign in to leave a comment.
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
--