What's the equivalent F# declaration to this C# declaration:
using NR = ICSharpCode.NRefactory;
Namespace aliases allow the programmer to define an alternate name for a namespace. They are commonly used as a convenient shortcut for long or deeply-nested namespaces.
Namespace Alias Qualifier(::) makes the use of alias name in place of longer namespace and it provides a way to avoid ambiguous definitions of the classes. It is always positioned between two identifiers. The qualifier looks like two colons(::) with an alias name and the class name. It can be global.
Type aliasing is a little known feature for C# and it comes in handy when you would like to alias a specific method or class from a namespace for the sake of clarity. At the heart of these features is the using keyword.
You can also create an alias for a namespace or a type with a using alias directive.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With