Intellimpropt for Funct<T, TResult> instantiation

SyntaxEditor .NET Languages Add-on for Windows Forms Forum

Posted 3 years ago by YEVGENIY A GRIGORYEV
Version: 20.1.0403

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 3 years ago]

Comments (2)

Posted 3 years ago by YEVGENIY A GRIGORYEV

We have found out that instantiating as follows does provide intellimprompt

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

[Modified 3 years ago]

Posted 3 years ago by Actipro Software Support - Cleveland, OH, USA


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 (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.