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 jxs_xrj, 01-12-2020, 09:49 AM
          6 responses
          3,290 views
          1 like
          Last Post jgualdronc  
          Started by Touch-Ups, Today, 10:36 AM
          0 responses
          7 views
          0 likes
          Last Post Touch-Ups  
          Started by geddyisodin, 04-25-2024, 05:20 AM
          8 responses
          61 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by Option Whisperer, Today, 09:55 AM
          0 responses
          8 views
          0 likes
          Last Post Option Whisperer  
          Started by halgo_boulder, 04-20-2024, 08:44 AM
          2 responses
          24 views
          0 likes
          Last Post halgo_boulder  
          Working...
          X