in System.Activities.WorkflowApplication there is a delegate property:
public Action<WorkflowApplicationCompletedEventArgs> Completed { get; set; }
In my program so far, I have a variable that is an instance of this class
I want to define an F# function to set that:
let f (e: WorkflowApplicationCompletedEventArgs) =
// body
myInst.Completed <- f
but this produces the error:
Error 102 This expression was expected to have type Action but here has type 'a -> unit
how do I complete function "f" to satisfy the compiler?
let f = System.Action<WorkflowApplicationCompletedEventArgs>(fun e -> (*body to unit*))
– Catechu