本文介绍了如何使用名称空间或键入别名/缩写?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

与此C#声明等效的F#声明是什么:

What's the equivalent F# declaration to this C# declaration:

使用NR = ICSharpCode.NRefactory;

using NR = ICSharpCode.NRefactory;

推荐答案

F#中的缩写可以应用于模块:

abbreviations in F# can be applied to modules:

module ES = Microsoft.FSharp.Quotations.ExprShape

类型

type Thread = System.Threading.Thread

不幸的是,名称空间不能缩写

unfortunatly just namespaces cannot be abbreviated

这篇关于如何使用名称空间或键入别名/缩写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-13 01:04