C#: How to create “aliases” for classes

前端 未结 7 1636
你的背包
你的背包 2020-12-17 18:43

I don\'t even know if it\'s called an alias, but let me continue anyway.

You know how the System.String type in C# is sorta \"aliased\" with \"string\"? In Visual S

7条回答
  •  眼角桃花
    2020-12-17 19:26

    You can add a using directive at the top of your file:

     using Rppr = MyProjectNs.RelocatedPlantProductReleaseItem;
    

    But it (only) works per file, not for a Project.

提交回复
热议问题