Ejemplo n.º 1
0
        internal override bool TryPopulateValue(LocationEnvironment targetEnvironment, System.Activities.ActivityInstance activityInstance, ActivityContext resolutionContext)
        {
            T            local;
            Location <T> location = Argument.CreateLocation <T>();

            targetEnvironment.Declare(base.RuntimeArgument, location, activityInstance);
            if (this.Expression.TryGetValue(resolutionContext, out local))
            {
                location.Value = local;
                return(true);
            }
            return(false);
        }
Ejemplo n.º 2
0
 internal override Location CreateDefaultLocation()
 {
     return(Argument.CreateLocation <T>());
 }