Closed larrywelch closed 7 years ago
You can overload methods provided the class is marked as Imported
[Imported]
public class ImportedClass
{
public ImportedClass(string s)
{
}
public ImportedClass(int i)
{
}
public void Foo(int i)
{
}
public void Foo(string s)
{
}
}
Perfect!
Is there a trick to overloaded methods and constructors or are they just not supported?
Ex: [ScriptName("tryLocationToPixel")] public MapPoint[] TryLocationsToPixels(MapLocation[] locations) { return null; }
or public Map(Element element, MapViewOptions options) {} public Map(string elementName, MapOptions options) { } public Map(string elementName, MapViewOptions options) { }