Translating C# to X#

This forum is meant for questions and discussions about the X# language and tools
User avatar
Chris
Posts: 5536
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: Translating C# to X#

Post by Chris »

Hi Isaac,

To be more precise, this Point type is available in the VOGUIClasses.dll library, used usually for apps ported from Visual Objects. Also the full name of this type is VO.Point, so normally there's no ambiguity with the System.Drawing.Point type.

But X# has a feature to make the compiler automatically resolve types from certain libraries without needing the namespace part ("VO" in our case), if you enable the compiler option /ins - Use implicit namespace lookup of types. It basically implicitly adds USING statements so you do not have to add them in every file. If you disable this option in the app settings, you will be in full control on what USING statements your code will use and to what similar named types the compiler resolves.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Post Reply