I've got a library written in F#, consumed by C# and F#. this library defines a class foo
, in module bar
, in namespace random
:
#light
namespace random
module bar
type foo() = ...
Now, when I go to consume type random.foo.bar
, C# intellisense sees it as type bar
, nested in type random.foo
.
The question is this: Is there an advantage to C# to define externally-consumable code into modules, rather than namespaces? I understand that modules are a good way to group functions, but what about classes?