[umbrello] [Bug 502784] New: C# classes outside namespace-block are ignored.

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Mon Apr 14 10:46:58 BST 2025


https://bugs.kde.org/show_bug.cgi?id=502784

            Bug ID: 502784
           Summary: C# classes outside namespace-block are ignored.
    Classification: Applications
           Product: umbrello
           Version: unspecified
          Platform: Ubuntu
                OS: Linux
            Status: REPORTED
          Severity: critical
          Priority: NOR
         Component: importer
          Assignee: umbrello-devel at kde.org
          Reporter: andy at roompeach.com
  Target Milestone: ---

BUG: Importing C# code from a straight from a directory and also using the
import-wizard finds no classes.

AS-IS: The importer ignores all classes which are not under the "namespace"
block, i.e. 99% of the classes, as the C# since a few years doesn't require the
"namespace Xy { .... }" syntax.
EXPECTED: The importer should find classes also in the case the namespace is
written in the form: "namespace Xy;" i.e. without the "{ }" block segment.

Like this, the tool is fully useless, as with any real code-base it's unable to
import the model - the architect is required to write all the class names and
their props+behaviors manually again within your tool.

Please notice, that the "namespace Xy;" syntax was introduced in C#10 - we are
currently at C#13 and your tool asks me if I wish to use also the C#11 syntax,
so this should definitely work.

Thank you very much :-),
Andrej

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list