3 writes to ArgumentType
System.Activities (3)
System\Activities\InArgument.cs (1)
110
this.
ArgumentType
= typeof(T);
System\Activities\InOutArgument.cs (1)
83
this.
ArgumentType
= typeof(T);
System\Activities\OutArgument.cs (1)
103
this.
ArgumentType
= typeof(T);
88 references to ArgumentType
System.Activities (48)
System\Activities\Activity.cs (2)
1758
throw FxTrace.Exception.AsError(new ValidationException(SR.MissingNameProperty(value.
ArgumentType
)));
1761
RuntimeArgument runtimeArgument = new RuntimeArgument(key, value.
ArgumentType
, value.Direction, false, null, value);
System\Activities\Argument.cs (9)
143
return ActivityUtilities.CreateReferenceArgument(argumentToReference.
ArgumentType
, argumentToReference.Direction, referencedArgumentName);
183
Fx.Assert(binding.
ArgumentType
== argument.Type, "The types must match.");
208
if (binding.
ArgumentType
!= argument.Type)
210
violationOwner.AddTempValidationError(new ValidationError(SR.ArgumentTypeMismatch(argument.Name, argument.Type, binding.
ArgumentType
)));
285
if (actualExpression.ResultType != this.
ArgumentType
)
289
new ValidationError(SR.ArgumentValueExpressionTypeMismatch(this.
ArgumentType
, actualExpression.ResultType), false, this.RuntimeArgument.Name, owner));
296
locationType != this.
ArgumentType
)
298
Type expectedType = ActivityUtilities.CreateActivityWithResult(ActivityUtilities.CreateLocation(this.
ArgumentType
));
330
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.ArgumentNotInTree(this.
ArgumentType
)));
System\Activities\Expressions\IndexerHelper.cs (3)
20
RuntimeArgument indexArgument = new RuntimeArgument("Index" + i, indices[i].
ArgumentType
, ArgumentDirection.In, true);
34
getTypes[i] = indices[i].
ArgumentType
;
46
setTypes[i] = indices[i].
ArgumentType
;
System\Activities\Expressions\InvokeMethod.cs (1)
111
targetObjectType = this.TargetObject.
ArgumentType
;
System\Activities\Expressions\New.cs (3)
75
RuntimeArgument runtimeArgument = new RuntimeArgument("Argument" + i, this.arguments[i].
ArgumentType
, this.arguments[i].Direction, true);
78
types[i] = this.Arguments[i].Direction == ArgumentDirection.In ? this.Arguments[i].
ArgumentType
: this.Arguments[i].
ArgumentType
.MakeByRefType();
System\Activities\Expressions\NewArray.cs (3)
66
if (!isIntegralType(argument.
ArgumentType
))
73
RuntimeArgument runtimeArgument = new RuntimeArgument("Argument" + i, this.Bounds[i].
ArgumentType
, this.bounds[i].Direction, true);
77
types[i] = argument.
ArgumentType
;
System\Activities\InArgument.cs (2)
40
return (InArgument)ActivityUtilities.CreateReferenceArgument(argumentToReference.
ArgumentType
, ArgumentDirection.In, referencedArgumentName);
58
return (InArgument)ActivityUtilities.CreateReferenceArgument(argumentToReference.
ArgumentType
, ArgumentDirection.In, referencedArgumentName);
System\Activities\InOutArgument.cs (1)
38
return (InOutArgument)ActivityUtilities.CreateReferenceArgument(argumentToReference.
ArgumentType
, ArgumentDirection.InOut, referencedArgumentName);
System\Activities\OutArgument.cs (2)
40
return (OutArgument)ActivityUtilities.CreateReferenceArgument(argumentToReference.
ArgumentType
, ArgumentDirection.Out, referencedArgumentName);
58
return (OutArgument)ActivityUtilities.CreateReferenceArgument(argumentToReference.
ArgumentType
, ArgumentDirection.Out, referencedArgumentName);
System\Activities\Statements\Assign.cs (6)
43
valueType = this.Value.
ArgumentType
;
53
toType = this.To.
ArgumentType
;
66
if (!TypeHelper.AreTypesCompatible(this.Value.
ArgumentType
, this.To.
ArgumentType
))
69
this.Value.
ArgumentType
,
70
this.To.
ArgumentType
,
System\Activities\Statements\InternalState.cs (1)
188
RuntimeArgument eventManagerArgument = new RuntimeArgument("EventManager", this.EventManager.
ArgumentType
, ArgumentDirection.In);
System\Activities\Statements\InvokeDelegate.cs (5)
62
RuntimeArgument argument = new RuntimeArgument(entry.Key, entry.Value.
ArgumentType
, entry.Value.Direction);
95
if (!TypeHelper.AreTypesCompatible(delegateArgument.
ArgumentType
, expectedParameter.Type))
97
metadata.AddValidationError(SR.DelegateInArgumentTypeMismatch(parameterName, expectedParameter.Type, delegateArgument.
ArgumentType
));
102
if (!TypeHelper.AreTypesCompatible(expectedParameter.Type, delegateArgument.
ArgumentType
))
104
metadata.AddValidationError(SR.DelegateOutArgumentTypeMismatch(parameterName, expectedParameter.Type, delegateArgument.
ArgumentType
));
System\Activities\Statements\InvokeMethod.cs (3)
120
targetObjectType = this.TargetObject.
ArgumentType
;
131
resultType = this.Result.
ArgumentType
;
181
resolver.ResultType = this.Result.
ArgumentType
;
System\Activities\Statements\MethodExecutor.cs (1)
80
if (paramArrayCount == 1 && TypeHelper.AreTypesCompatible(this.parameters[i].
ArgumentType
,
System\Activities\Statements\MethodResolver.cs (6)
110
RuntimeArgument argument = new RuntimeArgument(name, Parameters[i].
ArgumentType
, Parameters[i].Direction, true);
138
RuntimeArgument argument = new RuntimeArgument(name, Parameters[index].
ArgumentType
, Parameters[index].Direction, true);
150
RuntimeArgument argument = new RuntimeArgument(name, Parameters[i].
ArgumentType
, Parameters[i].Direction, true);
211
targetType = this.TargetObject.
ArgumentType
;
228
Parameters.Select(argument => argument.Direction == ArgumentDirection.In ? argument.
ArgumentType
: argument.
ArgumentType
.MakeByRefType())
System.Activities.Core.Presentation (14)
System\Activities\Core\Presentation\AssignDesigner.xaml.cs (2)
111
Type targetType = to == null ? typeof(object) : to.
ArgumentType
;
112
if (value.
ArgumentType
!= targetType)
System\Activities\Core\Presentation\InvokeDelegateValidationFeature.cs (5)
177
if (delegateArgument.
ArgumentType
!= expectedArgument.Type)
181
if (!TypeHelper.AreTypesCompatible(delegateArgument.
ArgumentType
, expectedArgument.Type))
183
errorBuilder.AppendFormat(CultureInfo.CurrentUICulture, SR.DelegateInArgumentTypeMismatch, expectedArgument.Name, expectedArgument.Type, delegateArgument.
ArgumentType
);
188
if (!TypeHelper.AreTypesCompatible(expectedArgument.Type, delegateArgument.
ArgumentType
))
190
errorBuilder.AppendFormat(CultureInfo.CurrentUICulture, SR.DelegateOutArgumentTypeMismatch, expectedArgument.Name, expectedArgument.Type, delegateArgument.
ArgumentType
);
System\Activities\Presentation\DynamicArgumentDesigner.xaml.cs (1)
828
this.Type = argument.
ArgumentType
;
System\ServiceModel\Activities\Presentation\MessageQuerySetDesigner.xaml.cs (2)
201
result.Add(new KeyValuePair<string, Type>(entry.Key, entry.Value.
ArgumentType
));
209
result.Add(new KeyValuePair<string, Type>(entry.Key, entry.Value.
ArgumentType
));
System\ServiceModel\Activities\Presentation\ReceiveDesigner.xaml.cs (1)
131
this.ModelItem.Properties[DeclaredMessageType].SetValue(null == messageContent ? null : messageContent.Message.
ArgumentType
);
System\ServiceModel\Activities\Presentation\ReceiveReplyDesigner.xaml.cs (1)
109
this.ModelItem.Properties[DeclaredMessageType].SetValue(null == messageContent ? null : messageContent.Message.
ArgumentType
);
System\ServiceModel\Activities\Presentation\SendDesigner.xaml.cs (1)
134
this.ModelItem.Properties[DeclaredMessageType].SetValue(null == messageContent ? null : messageContent.Message.
ArgumentType
);
System\ServiceModel\Activities\Presentation\SendReplyDesigner.xaml.cs (1)
108
this.ModelItem.Properties[DeclaredMessageType].SetValue(null == messageContent ? null : messageContent.Message.
ArgumentType
);
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (2)
160
Type expectedReturnType = expressionReplacement.NewArgument.
ArgumentType
;
177
expectedReturnType = assignWithRValueToFix.To.
ArgumentType
;
System.ServiceModel.Activities (24)
System\ServiceModel\Activities\ContractValidationHelper.cs (3)
418
if (argument != null && argument.
ArgumentType
!= targetMessageBody.ReturnValue.Type)
420
Constraint.AddValidationError(context, new ValidationError(SR2.FirstParameterDoesnotMatchTheReturnValue(argument.
ArgumentType
.FullName, targetMessageBody.ReturnValue.Type.FullName, targetOperation.Name, targetOperation.DeclaringContract.Name)));
442
if (argument != null && argument.
ArgumentType
!= targetPart.Type)
System\ServiceModel\Activities\FromReply.cs (3)
63
RuntimeArgument resultArgument = new RuntimeArgument(Constants.Result, this.Result.
ArgumentType
, ArgumentDirection.Out);
73
RuntimeArgument parameterArgument = new RuntimeArgument(Constants.Message + count++, parameter.
ArgumentType
, ArgumentDirection.Out);
125
obj = ProxyOperationRuntime.GetDefaultParameterValue(outArgument.
ArgumentType
);
System\ServiceModel\Activities\FromRequest.cs (2)
66
RuntimeArgument parameterArgument = new RuntimeArgument(Constants.Parameter + count++, parameter.
ArgumentType
, ArgumentDirection.Out);
113
obj = ProxyOperationRuntime.GetDefaultParameterValue(outArgument.
ArgumentType
);
System\ServiceModel\Activities\InternalReceiveMessage.cs (1)
756
correlation.CorrelationHandle.
ArgumentType
, correlation.CorrelationHandle.Direction, true);
System\ServiceModel\Activities\InternalSendMessage.cs (1)
569
correlation.CorrelationHandle.
ArgumentType
, correlation.CorrelationHandle.Direction, true);
System\ServiceModel\Activities\MessagingActivityHelper.cs (1)
39
Type messageType = (messageArgument == null) ? TypeHelper.ObjectType : messageArgument.
ArgumentType
;
System\ServiceModel\Activities\ReceiveMessageContent.cs (3)
64
return this.Message.
ArgumentType
;
83
if (this.Message != null && this.DeclaredMessageType == this.Message.
ArgumentType
)
102
else if (this.Message != null && !this.DeclaredMessageType.IsAssignableFrom(this.Message.
ArgumentType
))
System\ServiceModel\Activities\ReceiveParametersContent.cs (2)
82
this.argumentTypes[index] = pair.Value.
ArgumentType
;
111
RuntimeArgument newRuntimeArgument = new RuntimeArgument(pair.Key, pair.Value.
ArgumentType
, ArgumentDirection.Out);
System\ServiceModel\Activities\SendMessageContent.cs (3)
64
return this.Message.
ArgumentType
;
98
if (this.Message != null && this.DeclaredMessageType == this.Message.
ArgumentType
)
117
else if (this.Message != null && !this.DeclaredMessageType.IsAssignableFrom(this.Message.
ArgumentType
))
System\ServiceModel\Activities\SendParametersContent.cs (2)
98
this.argumentTypes[index] = pair.Value.
ArgumentType
;
127
RuntimeArgument newRuntimeArgument = new RuntimeArgument(pair.Key, pair.Value.
ArgumentType
, ArgumentDirection.In);
System\ServiceModel\Activities\ToReply.cs (2)
92
RuntimeArgument resultArgument = new RuntimeArgument(Constants.Result, this.Result.
ArgumentType
, ArgumentDirection.In);
102
RuntimeArgument parameterArgument = new RuntimeArgument(Constants.Parameter + count++, parameter.
ArgumentType
, ArgumentDirection.In);
System\ServiceModel\Activities\ToRequest.cs (1)
73
RuntimeArgument parameterArgument = new RuntimeArgument(Constants.Parameter + count++, parameter.
ArgumentType
, ArgumentDirection.In);