Intellisense in attribute on method not working.

SyntaxEditor .NET Languages Add-on for WPF Forum

Posted 7 years ago by Jonathan Reis
Version: 12.2.0570
Platform: .NET 4.5
Environment: Windows 8 (64-bit)
Avatar

Hello Bill,

I have the following defined:

 

public class ClinicalDevice : BaseDevice<FilingOptions>
{
      public const string BeforeCommitEvent = "topic://ClinicalDevice/BeforeCommit";
}

 

and an Attribute

 

  [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
  public class EventSubscriptionAttribute : Attribute
  {
    public EventSubscriptionAttribute(string topic)
    {
      Topic = topic;
    }
    public string Topic { get; private set; }
  }

 

When I attempt to add the attribute to a function in another class

public class AnotherClass
{
    [EventSubscription(ClinicalDevice.BeforeCommitEvent)]
    public void OnBeforeCommit(object sender, EventArgs args)
    {
    }
}

 There is no intellisense for:

ClinicalDevice within the attribute specification. Since BeforeCommitEvent is a public const. It is available in this context, but does not show up.

Comments (1)

Posted 7 years ago by Jonathan Reis
Avatar

Sorry. This looks like something we are doing incorrectly. Please ignore.

The latest build of this product (v2019.1 build 0683) was released 21 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.