question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE] Create an interface to extract meta information from TopazFunction

See original GitHub issue

Firstly, great project!

Secondly, I want to elaborate on the title by saying that in short what I’m trying to do is invoke a function with an arbitrary amount of parameters.

Given the following:

function myFunc(someParam, otherParam, thirdParam) {}

The return form evaluating this is a TopazFunction, which is an internal type. Technically fine; Topaz lets you pass the object to InvokeFunction, but a slight hindrance for my use-case. I’d personally like a way that functions can be exposed (just so I can see their names and the name of their parameters), and potentially build a delegate without having to do hacky reflection to determine the correct amount of parameters, etc.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
koculucommented, Jun 20, 2023

Great, thanks.! Dynamic delegate creation is required because:

  • C# is strict on argument count.
  • A topaz function can be converted to a delegate automatically. It is required to pass JS functions to the .NET methods with argument types Action<>, Func<> or any kind of delegate. You may check DelegateArgumentConversionTests to understand what I mean.
1reaction
koculucommented, Dec 2, 2022

Please ignore my previous comment which was already deleted before your answer to it 😃 This is a good feature request. I will add this as soon as possible. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extract an interface refactoring - Visual Studio (Windows)
Learn how to use the Quick Actions and Refactorings menu to create an interface by using existing members from a class, struct, ...
Read more >
c# - Provide meta information to a class implementing an ...
I'd like to provide meta information about a class implementing an interface and retrieve this meta data without instantiating it.
Read more >
Extract interface | IntelliJ IDEA Documentation
With the Extract Interface refactoring you have the following options: Create an interface based on the methods of a class.
Read more >
Informatica Metadata Extraction Interface
Metadata Manager uses a preliminary process to restructure the source metadata into a format required by the mappings within each PowerCenter workflow. The ......
Read more >
How to extract metadata from SDE tables
Hello, I'm looking for a way to extract metadata from the SDE tables (oracle 11g, AG Desktop 10.1). I think metadata are stored...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found