I have an Activity where I declared InArgument without a type (because I want to know the type of expression at design time).
When I execute the action, I get this error in the var contentTelegram line:
"The argument of type '<type>' cannot be used. Make sure that it is declared on an activity."
Here is my code:
public InArgument Content { get; set; } protected override PlcMessage Execute(CodeActivityContext context) { try { var contentTelegram = Content.Get(context); return new PlcMessage(); } catch (Exception ex) { throw; } }
source share