user3902017
user3902017

Reputation: 315

Passing a static instance as a variable? (Noesis Javascript)

I'm trying to use Javascript.NET, but I'm having trouble adding a reference to static classes.

jc.SetParameter("test", Log);

Also, "Log" is a static class.

I get the 'is a type but is used as a variable' error.

Upvotes: 0

Views: 155

Answers (1)

Zer0
Zer0

Reputation: 7354

Static classes cannot be instantiated. You can't pass them as a parameter to methods.

Upvotes: 1

Related Questions