开发者

How to use namespace or type alias/abbreviation?

开发者 https://www.devze.com 2023-01-20 10:17 出处:网络
What\'s the equivalent F# declaration to this C# declaration: using NR = ICSharpCod开发者_Go百科e.NRefactory;abbreviations in F# can be applied to modules:

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

using NR = ICSharpCod开发者_Go百科e.NRefactory;


abbreviations in F# can be applied to modules:

module ES = Microsoft.FSharp.Quotations.ExprShape

and types

type Thread = System.Threading.Thread

unfortunatly just namespaces cannot be abbreviated


Equivalent F# declaration would be:

type NR = ICSharpCode.NRefactory

In F# it's called a type abreviation: http://msdn.microsoft.com/en-us/library/dd233246.aspx

But ICSharpCode.NRefactory has to be here a type, as desco said just namespaces cannot be abbreviated.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号