[MonoDevelop] CSharpCodeGenerator.AddGlobalNamespaceImport vs local
adam.rpconnelly at gmail.com
Fri Jun 22 07:10:44 UTC 2012
That's what I thought, but since it doesn't seem to, I thought I'd double
Anyhow, I'll go through that tutorial and see what I can do.
On a related note - once I've got the code working I'll need to add the new
options to the policy dialog. Is there a way for me to do that on my mac,
or do I really need to do that part on a Linux machine?
On 21 Jun 2012, at 22:27, "Mike Krüger" <mkrueger at xamarin.com> wrote:
Forget about both - try to do all document changes with the ast of the file.
Other than that the local import should add the using inside the namespace,
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
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.
listMonodevelop-list at lists.ximian.comhttp://lists.ximian.com/mailman/listinfo/monodevelop-list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Monodevelop-list