静态类引用名称

Tra*_*vis 2 c# static

这主要是好奇心的问题.我试过像"静态类速记"或"静态类昵称"之类的搜索,但没有找到任何东西,这让我相信它是不可能的.

假设有一个静态类叫做TransitionalTransactionDeltaTemporaryRecord.在C#中是否有一种方法可以在我的代码中为所述类创建一个命名较短的引用,这样我就可以使用引用代替类了?下面的伪代码示例.

staticref DeltaRecord = System.TransitionalTransactionDeltaTemporaryRecord;

Transaction test = new Transaction();

// Ideally, these two would accomplish the same thing
test.Epsilon = DeltaRecord.ComputeEpsilon(pi);
test.Epsilon = TransitionalTransactionDeltaTemporaryRecord.ComputeEpsilon(pi);
Run Code Online (Sandbox Code Playgroud)

我希望尽可能避免使用极长的标识符.

Adr*_*ian 7

别名using ShortName = System.TransitionalTransactionDeltaTemporaryRecord;应该这样做.