Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can i expose c# object methods in javascript #104

Open
jharonfe opened this issue Dec 9, 2014 · 1 comment
Open

can i expose c# object methods in javascript #104

jharonfe opened this issue Dec 9, 2014 · 1 comment

Comments

@jharonfe
Copy link

jharonfe commented Dec 9, 2014

I am attempting to extend my C# application with JavaScript using IronJS. I have a set of custom C# objects. I supply these objects as inputs to a JavaScript function. I am able to access fields and properties of my C# objects in the script, however methods and delegates of the same objects come back as undefined. Is there a way using IronJS to expose the methods as well? Perhaps I missed a step when defining the context ?

Thanks.

example = function(CSharpObject)
{
try
{
debug(CSharpObject.Field); // returns the correct value
debug(CSharpObject.Method()); // returns undefined
}
catch(err)
{
debug(""Error: "" + err.message);
}
}

@fholm
Copy link
Owner

fholm commented Dec 12, 2014

Hey!

This project is abandoned.

Sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants