The requested page is not available for the requested platform. You are viewing the content for Default platform.

Inline Alias

Replaces all references to a type or a namespace alias with the full name of the type or the namespace.

Availability

Available from the context menu or via shortcuts:

  • when the cursor is on the alias declaration.

Examples

using MyAlias = System.Collections;
namespace Test
{
    public class TestClass
    {
        public void TestMethod()
        {
            MyAlias.BitArray bar = new MyAlias.BitArray(10);
        }
    }
}
Imports MyAlias = System.Collections
Namespace Test
    Public Class TestClass
        Public Function TestMethod()
            Dim bar As MyAlias.BitArray = New MyAlias.BitArray(10)
        End Function
    End Class
End Namespace

Result:

namespace Test
{
    public class TestClass
    {
        public void TestMethod()
        {
            System.Collections.BitArray bar = new System.Collections.BitArray(10);
        }
    }
}
Namespace Test
    Public Class TestClass
        Public Function TestMethod()
            Dim bar As System.Collections.BitArray = New System.Collections.BitArray(10)
        End Function
    End Class
End Namespace

Screenshot

rsInlineAlias