Workflow TV - How to do Optional InArguments

Sign in to queue

Description

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.

Links in this episode

Ron Jacobs
https://blogs.msdn.com/rjacobs
@ronljacobs

Tag:

WF4

Embed

Download

Download this episode

The Discussion

Add Your 2 Cents