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

[email protected] Mon, 14 Apr 2025 09:46:58 +0000
Newsgroups gmane.linux.umbrello.devel
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=3D502784

            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: [email protected]
          Reporter: [email protected]
  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 unabl=
e to
import the model - the architect is required to write all the class names a=
nd
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 synt=
ax,
so this should definitely work.

Thank you very much :-),
Andrej

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