Suppose there is a Q# operation as follows:
operation Op () : Bool {
let result = CSharpMethod ();
return result
}
where CSharpMethod ()
is a defined method in the Driver class as follows:
public static bool CSharpMethod () {
// ...
// return a boolean value
}
So my question is how to call a method of a C# class inside a Q# operation and handle its returned value?
Thanks.