Intellimpropt for Funct<T, TResult> instantiation

SyntaxEditor .NET Languages Add-on for Windows Forms Forum

Posted 5 months ago by YEVGENIY A GRIGORYEV
Version: 20.1.0403
Avatar

We have a case where we possibly should expect C# Intelliprompt, but are not receiving it

for delegates Func<T, TResult> instantiated as follows:

Func<T, TResult> foo = new Func<T, TResult>(TInst => { TInst... } );

we are not receiving T Intelliprompt off TInst dot member access, only Object members show up.

Hovering over TInst => tool tips that it is of Object type

In other scenarios T Intellimprompt works great.

Is this something that should be expected in the current version, if not, is there a recommended way to rewrite such instantiations to receive Intellimprompt?

Thank you!

[Modified 5 months ago]

Comments (2)

Posted 5 months ago by YEVGENIY A GRIGORYEV
Avatar

We have found out that instantiating as follows does provide intellimprompt

Func<T, TResult> foo = (Tinst) => { TInst... };

[Modified 5 months ago]

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

Hello,

Thank you for reporting this.  We found the issue and have it resolved for the next build.  In the meantime, using the simpler syntax does seem to work around it.


Actipro Software Support

The latest build of this product (v21.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.