c# - A Workflow Foundation 4 argument of a nested type -


one of arguments workflow (xaml) nested type declared in static class. unfortunately, "browse .net type" dialog box not show me type irrespective of search for

full.namespace.containingstaticlass.typeineed

or

full.namespace.containingstaticlass+typeineed

since dialog didn't work, tried editing xaml couldn't figure out how define

type="inargument(xmlnamespacetomyassembly:???)"

help!?

edit: seems workflow designer not work nested types @ all, because expression cast object nested type gave me error.

enter image description here

at point, workarounds welcome!

added simple sample shows problem.

  1. there no way add parameter (in designer) of type nestedtype.essentialstruct
  2. even if add expression cast object nestedtype.essentialstruct in properties window against inargument, designer complain.

posting relevant sections also:

the nested type needs used in codeactivity

public static class nestedtypes {     public struct essentialstruct     {     } } 

a simple activity uses nested type inargument , result

public sealed class testactivity : codeactivity<nestedtypes.essentialstruct> {     public inargument<nestedtypes.essentialstruct> handle     {         get;         set;     }      protected override nestedtypes.essentialstruct execute(codeactivitycontext context)     {         return context.getvalue(this.handle);     } } 

i can't post xaml produces error because designer doesn't save it, errors out before saving it.

you need use import on workflow. it's tab in designer. it's next variables , arguments.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -