[MonoDevelop] CSharpCodeGenerator.AddGlobalNamespaceImport vs local

Adam Connelly adam.rpconnelly at gmail.com
Thu Jun 21 07:34:56 UTC 2012


Hi,

Can anyone tell me what the difference is between AddGlobalNamespaceImport and AddLocalNamespaceImport? So far I've only seen a situation where AddGlobalNamespaceImport is called.

If I alter the code to call AddLocalNamespaceImport instead (just to see what it produces), it seems to place the using statement in the same place, but it indents it to the level as though it was inside the namespace.

If possible, could someone send me a quick example of what each should produce?

The reason I'm asking about this is that I'm wanting to add to the C# policy so that you can get it to conform to StyleCop rules since that's what I normally use.

Cheers,
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20120621/b2b19252/attachment.html>


More information about the Monodevelop-list mailing list