Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Properly support namespaces. #9

Open
neikeq opened this issue Aug 18, 2016 · 1 comment
Open

Properly support namespaces. #9

neikeq opened this issue Aug 18, 2016 · 1 comment

Comments

@neikeq
Copy link
Owner

neikeq commented Aug 18, 2016

C# does not have a class-file relation, so the script file and its class must share the same name to allow us locate the class. The problem comes when dealing with scripts whose classes are placed in namespaces. Right now, we iterate through all the classes in an assembly and pick the first one that matches the script name. This means one cannot have more than one script with the same name in a project, no matter what namespace its class belongs to.

In order to properly support namespaces, we must either find a way to detect the script namespace or make its class have a knowledge of its path.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants