
Hi,
we noticed a problem with a customer project. after we upgraded from an older WinForms version of the SyntaxEditor to the current WPF version.
The problem is that when a specified namesapce is redundant (e.g. not required), but accepted by the compiler, the types cannot be resolved.
For example we have a file like this:
using System;
namespace CustomNamespace.Common.Types
{
public enum Bool
{
False,
True
}
}
And another file like this:
using System;
using CustomNamespace.Common.Types;
namespace CustomNamespace.Test
{
public class Test
{
public static void A(Common.Types.Bool value) { }
public static void B(Bool value) { }
}
}
The Type "Bool" is resolved in method "B", but not in "A". In this case "Common.Types" ist not required due to the using statement, but it is still valid. The old WinForms release had no problem with that.
This also applies for the intelli prompt. The namespace "Common" is visible in the intelli prompt, but none of its children.
[Modified 2 years ago]
Best regards, Tobias Lingemann.