Episode
Workflow TV - How to do Optional InArguments
Suppose you have an activity that has an optional InArgument<int>
and the default value you want to use with this argument is not the default for the type, in this case zero. In this case I have a problem. InArgument<int>.Get()
will return zero but I don't know if that is because the caller provided a zero or it is simply using default(int)
. If the user provided a value, I want to us it. But if the user did not provide a value I want to use my default value instead. Confused? Don't worry I'll make it clear as I show you how you can make this work.
Ron Jacobs
Blog
Twitter: @ronljacobs
Suppose you have an activity that has an optional InArgument<int>
and the default value you want to use with this argument is not the default for the type, in this case zero. In this case I have a problem. InArgument<int>.Get()
will return zero but I don't know if that is because the caller provided a zero or it is simply using default(int)
. If the user provided a value, I want to us it. But if the user did not provide a value I want to use my default value instead. Confused? Don't worry I'll make it clear as I show you how you can make this work.
Ron Jacobs
Blog
Twitter: @ronljacobs
Have feedback? Submit an issue here.