Tuples are highlighted as incorrect syntax

SyntaxEditor for Windows Forms Forum

The latest build of this product (v2020.1 build 0402) was released 2 months ago, which was before this thread was created.
Posted 5 days ago by Alex Sche
Version: 20.1.0402
Platform: .NET 4.6
Environment: Windows 10 (64-bit)
Avatar

Hello ActiPro team,

We have encountered an issue with tuples - they are highlighted  by red line as incorrect statement:

var a = (A: 10, B: 20);

Are tuples supported by SyntaxEditor? 

Comments (2)

Answer - Posted 5 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Alex,

C# 7.x syntax (including this tuple syntax) should be supported as of v2020.1.  I suspect you are on an earlier version that what you indicated in the original post?


Actipro Software Support

Posted 4 days ago by Alex Sche
Avatar

Oh, sorry, indeed.

I'm just confused about the versions of my program - what have old SyntaxEditor and what uses the new one.

Add Comment

Please log in to a validated account to post comments.