[MonoDevelop] CSharpCodeGenerator.AddGlobalNamespaceImport vs local
mkrueger at xamarin.com
Fri Jun 22 08:44:17 UTC 2012
There is no part that should require a linux machine - the gtk gui
designer runs on mac os x as well.
> Thanks mike.
> That's what I thought, but since it doesn't seem to, I thought I'd
> double check.
> 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
> <mailto: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, if any.
>>> 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.
>>> Monodevelop-list mailing list
>>> Monodevelop-list at lists.ximian.com
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Monodevelop-list