edge icon indicating copy to clipboard operation
edge copied to clipboard

How to call a constructor with parameters

Open Navakanth009 opened this issue 5 years ago • 0 comments

Lets say I have class in C# like below

namespace Test { public class Greetings { public Greetings(String greet) { Greet = name; } public async Task Greet() { return String.Format("On {0}, you said {1}", System.DateTime.Now, Greet); } } }

I build this as project and I am trying to access the Greetings.Greet() from .dll like below

let assemblyFile = "./Test.dll" const init = edge.func({ assemblyFile : assemblyFile, typeName: 'Test.Greetings', methodName: 'Greet' });

How to call the Greetings() constructor with parameters here.

Navakanth009 avatar Sep 04 '20 12:09 Navakanth009