3 types derived from Argument
System.Activities (3)
System\Activities\InArgument.cs (1)
18
public abstract class InArgument :
Argument
System\Activities\InOutArgument.cs (1)
17
public abstract class InOutArgument :
Argument
System\Activities\OutArgument.cs (1)
19
public abstract class OutArgument :
Argument
214 references to Argument
System.Activities (127)
System\Activities\Activity.cs (8)
1715
IEnumerable<KeyValuePair<string,
Argument
>> argumentEnumerable = propertyValue as IEnumerable<KeyValuePair<string,
Argument
>>;
1742
protected static IList<RuntimeArgument> GetRuntimeArguments<T>(IEnumerable<KeyValuePair<string, T>> argumentDictionary, string propertyName) where T :
Argument
1749
Argument
value = pair.Value;
1769
class DictionaryArgumentHelper<T> : DictionaryArgumentHelper where T :
Argument
1975
Argument
.Bind(this.Result, this.ResultRuntimeArgument);
1980
Argument
.Bind(tempArgument, this.ResultRuntimeArgument);
1985
Argument
.Bind(this.Result, this.ResultRuntimeArgument);
System\Activities\ActivityContext.cs (2)
332
public object GetValue(
Argument
argument)
414
public void SetValue(
Argument
argument, object value)
System\Activities\ActivityMetadata.cs (2)
90
public void Bind(
Argument
binding, RuntimeArgument argument)
94
Argument
.TryBind(binding, argument, this.activity);
System\Activities\ActivityUtilities.cs (13)
39
static Type argumentType = typeof(
Argument
);
386
public static
Argument
CreateArgument(Type type, ArgumentDirection direction)
390
Argument
argument = (
Argument
)Activator.CreateInstance(argumentType);
395
public static
Argument
CreateArgumentOfObject(ArgumentDirection direction)
397
Argument
argument = null;
401
argument = (
Argument
)Activator.CreateInstance(inArgumentOfObjectType);
405
argument = (
Argument
)Activator.CreateInstance(outArgumentOfObjectType);
409
argument = (
Argument
)Activator.CreateInstance(inOutArgumentOfObjectType);
425
public static
Argument
CreateReferenceArgument(Type argumentType, ArgumentDirection direction, string referencedArgumentName)
427
Argument
argument =
Argument
.Create(argumentType, direction);
521
(origin is Activity || origin is
Argument
|| origin is ActivityDelegate || origin is LocationReference))
System\Activities\ActivityWithResultWrapper.cs (2)
13
class ActivityWithResultWrapper<T> : CodeActivity<T>,
Argument
.IExpressionWrapper
22
ActivityWithResult
Argument
.IExpressionWrapper.InnerExpression
System\Activities\Argument.cs (8)
29
this.evaluationOrder =
Argument
.UnspecifiedEvaluationOrder;
60
if (value < 0 && value !=
Argument
.UnspecifiedEvaluationOrder)
131
public static
Argument
CreateReference(
Argument
argumentToReference, string referencedArgumentName)
155
if (this.EvaluationOrder ==
Argument
.UnspecifiedEvaluationOrder)
178
internal static void Bind(
Argument
binding, RuntimeArgument argument)
191
internal static void TryBind(
Argument
binding, RuntimeArgument argument, Activity violationOwner)
221
public static
Argument
Create(Type type, ArgumentDirection direction)
System\Activities\ArgumentDirectionHelper.cs (2)
26
public static bool IsIn(
Argument
argument)
36
public static bool IsOut(
Argument
argument)
System\Activities\CodeActivity.cs (1)
186
(this.RuntimeArguments.Count == 1 && this.RuntimeArguments[0].Name ==
Argument
.ResultValue))
System\Activities\CodeActivityMetadata.cs (2)
98
public void Bind(
Argument
binding, RuntimeArgument argument)
102
Argument
.TryBind(binding, argument, this.activity);
System\Activities\CodeActivityPublicEnvironmentAccessor.cs (2)
146
Argument
argument = ActivityUtilities.CreateArgument(argumentType, direction);
149
Argument
.TryBind(argument, runtimeArgument, this.metadata.CurrentActivity);
System\Activities\Debugger\XamlDebuggerXmlReader.cs (3)
666
Argument
argumentInstance = instance as
Argument
;
738
return instance is
Argument
;
System\Activities\DynamicUpdate\NativeActivityUpdateContext.cs (2)
182
public object GetValue(
Argument
argument)
196
public void SetValue(
Argument
argument, object value)
System\Activities\Expressions\ExpressionServices.cs (6)
89
else if (TypeHelper.AreTypesCompatible(declaringType, typeof(
Argument
))
100
(TypeHelper.AreTypesCompatible(parameters[0].ParameterType, typeof(
Argument
)) || TypeHelper.AreTypesCompatible(parameters[0].ParameterType, typeof(RuntimeArgument))))
212
else if (TypeHelper.AreTypesCompatible(declaringType, typeof(
Argument
))
1370
static string TryConvertArgumentExpressionWorker<TArgument>(Expression expression, bool isByRef, bool throwOnError, out System.Activities.
Argument
result)
1477
Argument
argument = (
Argument
)parameters[3];
System\Activities\Expressions\InvokeMethod.cs (3)
21
Collection<
Argument
> parameters;
60
public Collection<
Argument
> Parameters
66
this.parameters = new ValidatingCollection<
Argument
>
System\Activities\Expressions\New.cs (5)
26
Collection<
Argument
> arguments;
35
public Collection<
Argument
> Arguments
41
this.arguments = new ValidatingCollection<
Argument
>
67
Argument
argument = this.Arguments[i];
109
Argument
argument = this.Arguments[i];
System\Activities\Expressions\NewArray.cs (5)
16
Collection<
Argument
> bounds;
19
public Collection<
Argument
> Bounds
25
this.bounds = new ValidatingCollection<
Argument
>
58
Argument
argument = this.Bounds[i];
98
foreach (
Argument
argument in this.Bounds)
System\Activities\ExpressionUtilities.cs (12)
37
static Type argumentType = typeof(
Argument
);
45
static MethodInfo argumentGetLocationMethod = typeof(
Argument
).GetMethod("GetLocation", new Type[] { typeof(ActivityContext) });
454
Func<ActivityContext,
Argument
> argumentFunction;
458
this.argumentFunction = ExpressionUtilities.Compile<
Argument
>(argumentExpression, expressionParameters);
463
Argument
argument = this.argumentFunction(context);
1382
Argument
argument = null;
1385
if (CustomMemberResolver(argumentExpression, out tempArgument) && tempArgument is
Argument
)
1387
argument = (
Argument
)tempArgument;
1393
Expression<Func<
Argument
>> argumentLambda = Expression.Lambda<Func<
Argument
>>(argumentExpression);
1394
Func<
Argument
> argumentFunc = argumentLambda.Compile();
1677
if (TypeHelper.AreTypesCompatible(parameterExpression.Type, typeof(
Argument
)))
System\Activities\InArgument.cs (2)
223
return
Argument
.CreateLocation<T>();
230
Location<T> location =
Argument
.CreateLocation<T>();
System\Activities\InOutArgument.cs (1)
192
return
Argument
.CreateLocation<T>();
System\Activities\NativeActivityMetadata.cs (2)
89
public void Bind(
Argument
binding, RuntimeArgument argument)
93
Argument
.TryBind(binding, argument, this.activity);
System\Activities\OutArgument.cs (1)
220
return
Argument
.CreateLocation<T>();
System\Activities\RuntimeArgument.cs (13)
21
Argument
boundArgument;
74
internal RuntimeArgument(string name, Type argumentType, ArgumentDirection direction, bool isRequired, List<string> overloadGroups,
Argument
argument)
80
Argument
.Bind(argument, this);
162
return this.IsBound && this.BoundArgument.EvaluationOrder !=
Argument
.UnspecifiedEvaluationOrder;
166
internal
Argument
BoundArgument
194
Argument
argument = (
Argument
)this.bindingProperty.GetValue(this.bindingPropertyOwner);
200
argument = (
Argument
) Activator.CreateInstance(this.bindingProperty.PropertyType);
209
Argument
.Bind(argument, this);
241
Argument
argument = null;
245
argument = (
Argument
)targetProperty.GetValue(owningElement);
254
argument = (
Argument
)Activator.CreateInstance(targetProperty.PropertyType);
275
Argument
.Bind(argument, this);
System\Activities\Statements\InvokeAction.cs (2)
19
IList<
Argument
> actionArguments;
23
this.actionArguments = new ValidatingCollection<
Argument
>
System\Activities\Statements\InvokeDelegate.cs (7)
21
IDictionary<string,
Argument
> delegateArguments;
26
this.delegateArguments = new Dictionary<string,
Argument
>();
36
public IDictionary<string,
Argument
> DelegateArguments
60
foreach (KeyValuePair<string,
Argument
> entry in this.DelegateArguments)
84
Argument
delegateArgument = null;
139
foreach (KeyValuePair<string,
Argument
> entry in DelegateArguments)
157
Argument
argument = null;
System\Activities\Statements\InvokeMethod.cs (3)
21
Collection<
Argument
> parameters;
61
public Collection<
Argument
> Parameters
67
this.parameters = new ValidatingCollection<
Argument
>
System\Activities\Statements\MethodExecutor.cs (2)
24
Collection<
Argument
> parameters;
28
Collection<
Argument
> parameters, RuntimeArgument returnObject)
System\Activities\Statements\MethodResolver.cs (10)
38
public Collection<
Argument
> Parameters { get; set; }
111
Argument
.Bind(Parameters[i], argument);
139
Argument
.Bind(Parameters[index], argument);
151
Argument
.Bind(Parameters[i], argument);
567
Type targetType, InArgument targetObject, Collection<
Argument
> parameters,
578
public SyncMethodExecutor(SyncMethodExecutor copy, Type targetType, InArgument targetObject, Collection<
Argument
> parameters,
621
Collection<
Argument
> parameters, RuntimeArgument returnObject,
634
Collection<
Argument
> parameters, RuntimeArgument returnObject)
683
Type targetType, InArgument targetObject, Collection<
Argument
> parameters,
696
Collection<
Argument
> parameters, RuntimeArgument returnObject) :
System\Activities\Variable.cs (2)
154
if (expression is
Argument
.IExpressionWrapper)
156
expression = ((
Argument
.IExpressionWrapper)expression).InnerExpression;
System\Activities\XamlIntegration\ArgumentValueSerializer.cs (4)
14
Argument
argument = value as
Argument
;
30
Argument
argument = value as
Argument
;
System.Activities.Core.Presentation (24)
System\Activities\Core\Presentation\AssignDesigner.xaml.cs (4)
106
Argument
value = valueProperty.ComputedValue as
Argument
;
107
Argument
to = toProperty.ComputedValue as
Argument
;
System\Activities\Core\Presentation\InvokeDelegateDesigner.xaml.cs (3)
147
if (!typeof(
Argument
).IsAssignableFrom(underlyingArgumentType))
159
Argument
argument =
Argument
.Create(arg.Type, arg.Direction == ActivityDelegateArgumentDirection.In ? ArgumentDirection.In : ArgumentDirection.Out);
System\Activities\Core\Presentation\InvokeDelegateValidationFeature.cs (1)
167
Argument
delegateArgument = null;
System\Activities\Core\Presentation\MorphHelpers.cs (5)
36
internal static
Argument
MorphArgument(ModelItem originalValue, Type targetType)
38
Argument
morphed = null;
39
Argument
original = (
Argument
)originalValue.GetCurrentValue();
52
morphed =
Argument
.Create(targetType, original.Direction);
System\Activities\Presentation\DynamicArgumentDesigner.xaml.cs (11)
59
new PropertyMetadata(typeof(
Argument
)));
72
static readonly Type ArgumentType = typeof(
Argument
);
336
if (!typeof(
Argument
).IsAssignableFrom(value))
382
if (!typeof(
Argument
).IsAssignableFrom(underlyingArgumentType))
391
if (!typeof(
Argument
).IsAssignableFrom(underlyingArgumentType))
441
Argument
argument =
Argument
.Create(wrapper.Type, wrapper.Direction);
455
Argument
argument =
Argument
.Create(wrapper.Type, wrapper.Direction);
824
Argument
argument = (
Argument
)argumentItem.GetCurrentValue();
System.Activities.Presentation (35)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlHelper.cs (2)
670
object expression = (property.Value is
Argument
) ? ((
Argument
)property.Value).Expression : null;
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\XamlObjectReaderWithSequence.cs (4)
104
Argument
argument = parent as
Argument
;
140
Argument
argumentObject = realObject as
Argument
;
System.Activities.Presentation\System\Activities\Presentation\ArgumentAccessor.cs (2)
19
public Func<Activity,
Argument
> Getter { get; set; }
24
public Action<Activity,
Argument
> Setter { get; set; }
System.Activities.Presentation\System\Activities\Presentation\Converters\ArgumentSearchableStringConverter.cs (2)
14
if (value is
Argument
)
16
results.Add(ExpressionHelper.GetExpressionString(((
Argument
)value).Expression));
System.Activities.Presentation\System\Activities\Presentation\Converters\ArgumentToExpressionConverter.cs (2)
37
Argument
target = null;
77
target =
Argument
.Create(argumentType, direction);
System.Activities.Presentation\System\Activities\Presentation\Converters\ArgumentToExpressionModelItemConverter.cs (2)
46
Argument
target = null;
75
target =
Argument
.Create(argumentType, direction);
System.Activities.Presentation\System\Activities\Presentation\DesignerMetadata.cs (3)
35
builder.AddCustomAttributes(typeof(
Argument
), new EditorAttribute(typeof(ExpressionValueEditor), typeof(PropertyValueEditor)));
41
builder.AddCustomAttributes(typeof(
Argument
), new EditorReuseAttribute(false));
59
builder.AddCustomAttributes(typeof(
Argument
), new SearchableStringConverterAttribute(typeof(ArgumentSearchableStringConverter)));
System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (9)
241
Argument
newArgument =
Argument
.Create(expectedReturnType, argumentAccessorWrapper.Argument.Direction);
254
public ArgumentAccessorWrapper(ArgumentAccessor argumentAccessor,
Argument
argument)
265
public
Argument
Argument { get; private set; }
298
Argument
argument = argumentAccessor.Getter(activity);
318
public ExpressionReplacement(ActivityWithResult expressionToReplace,
Argument
oldArgument,
Argument
newArgument, ArgumentAccessor argumentAccessor)
337
public
Argument
OldArgument
343
public
Argument
NewArgument
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (6)
1101
value = this.Editor.ArgumentToExpressionConverter.ConvertBack(value, typeof(
Argument
), direction, CultureInfo.CurrentCulture);
1198
return this.GetArgumentDirection() != PropertyKind.Property || !type.IsGenericType || !typeof(
Argument
).IsAssignableFrom(type);
1411
Argument
currentArgument = this.ReflectedObject.Properties[ArgumentDefaultValueProperty].ComputedValue as
Argument
;
1434
Argument
newArgument =
Argument
.Create(newType, ArgumentDirection.In);
System.Activities.Presentation\System\Activities\Presentation\Xaml\ActivityBuilderHelper.cs (3)
67
if (propertyType != null && typeof(
Argument
).IsAssignableFrom(propertyType))
82
Argument
argument = property.Value as
Argument
;
System.ServiceModel.Activities (12)
System\ServiceModel\Activities\ContractValidationHelper.cs (4)
417
Argument
argument = (
Argument
)iterator.Value;
441
Argument
argument = (
Argument
)iterator.Value;
System\ServiceModel\Activities\MessagingActivityHelper.cs (2)
37
public static void FixMessageArgument(
Argument
messageArgument, ArgumentDirection direction, ActivityMetadata metadata)
43
public static void AddRuntimeArgument(
Argument
messageArgument, string runtimeArgumentName, Type runtimeArgumentType,
System\ServiceModel\Activities\Receive.cs (2)
569
Argument
outArgument = OutArgument.Create(messagePart.Type, ArgumentDirection.Out);
590
Argument
outArgument = OutArgument.Create(content.DeclaredMessageType, ArgumentDirection.Out);
System\ServiceModel\Activities\SendReply.cs (4)
332
Argument
returnArgument = InArgument.Create(message.Body.ReturnValue.Type, ArgumentDirection.In);
340
Argument
inArgument = InArgument.Create(messagePart.Type, ArgumentDirection.In);
355
Argument
inArgument = InArgument.Create(content.DeclaredMessageType, ArgumentDirection.In);
369
Argument
inArgument = InArgument.Create(sendMessageContent.DeclaredMessageType, ArgumentDirection.In);
System.Workflow.Runtime (16)
System\Activities\Statements\Interop.cs (16)
38
Dictionary<string,
Argument
> properties;
130
public IDictionary<string,
Argument
> ActivityProperties
136
this.properties = new Dictionary<string,
Argument
>();
247
Argument
inBinding = null;
259
Argument
outBinding = null;
448
Argument
argument;
466
foreach (KeyValuePair<string,
Argument
> parameter in this.properties)
468
Argument
argument = parameter.Value;
647
inDescriptor = new ArgumentProperty(this, property.Name + InArgumentSuffix,
Argument
.Create(property.PropertyType, ArgumentDirection.In), newAttributes);
651
inDescriptor = new ArgumentProperty(this, property.Name,
Argument
.Create(property.PropertyType, ArgumentDirection.In), newAttributes);
655
InteropProperty outDescriptor = new ArgumentProperty(this, property.Name + OutArgumentSuffix,
Argument
.Create(property.PropertyType, ArgumentDirection.Out), newAttributes);
1584
Argument
argument;
1586
public ArgumentProperty(Interop owner, string argumentName,
Argument
argument, Attribute[] attributes)
1622
this.Owner.ActivityProperties[this.argumentName] = (
Argument
)value;
1630
Argument
GetArgument()
1632
Argument
argument;