Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

8.1.2.0 and C# 8 features: Recursive Pattern Matching

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    8.1.2.0 and C# 8 features: Recursive Pattern Matching

    Simple way like this works fine:
    PHP Code:
    int x 5;
    if (
    x is int v)
    {


    More complex form like do compile but causing problems in formatting and false syntax error warnings:
    PHP Code:
    object o "";
    if (
    o is string Lengths)
    {
    }&
    #8203; 
    This is what NS Editor shows right after a compilation.
    (In more complex scripts regions formatting become totally corrupted. Error highlighting appearing in dozens of places.)

    Click image for larger version

Name:	image.png
Views:	79
Size:	177.7 KB
ID:	1278662

    And here are false warnings if I'll type any symbols (including innocent SPACE) anywhere:

    Click image for larger version

Name:	image.png
Views:	73
Size:	179.7 KB
ID:	1278663
    fx.practic
    NinjaTrader Ecosystem Vendor - fx.practic

    #2
    Hello fx.practic,

    Thanks for your post.

    I was able to recreate this behavior on my end.

    We are researching this matter further to provide you with the best information possible.

    Once we are finished investigating this behavior we will update this forum thread with more information.

    Thanks for your patience.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Hello fx.practic,

      Thanks for your patience.

      I have reported this behavior to the Development team so they may investigate this matter further. The ID for this reported behavior is NT-11393.

      Once the Development team has finished investigating this and reports back I will update this forum thread with their findings.

      Thanks for reporting this!
      Brandon H.NinjaTrader Customer Service

      Comment


        #4
        Thank you, glad to hear this!
        fx.practic
        NinjaTrader Ecosystem Vendor - fx.practic

        Comment


          #5
          Hello fx.practic,

          Thanks for your patience.

          Our Development team has informed me that a fix for this will be implemented. We do not have an estimated time for when the fix will be implemented.

          In the meantime, you will need to work around the issue for by either not using that type of code, or ignoring the error marks that appear until you recompile.
          Brandon H.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Balage0922, Today, 07:38 AM
          0 responses
          3 views
          0 likes
          Last Post Balage0922  
          Started by JoMoon2024, Today, 06:56 AM
          0 responses
          6 views
          0 likes
          Last Post JoMoon2024  
          Started by Haiasi, 04-25-2024, 06:53 PM
          2 responses
          19 views
          0 likes
          Last Post Massinisa  
          Started by Creamers, Today, 05:32 AM
          0 responses
          6 views
          0 likes
          Last Post Creamers  
          Started by Segwin, 05-07-2018, 02:15 PM
          12 responses
          1,786 views
          0 likes
          Last Post Leafcutter  
          Working...
          X