57 references to Type
System.Activities (57)
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (2)
620
if (targetType != reference.
Type
)
1637
return referenceToReturn.
Type
;
System\Activities\Activity.cs (4)
1883
if (TypeHelper.AreTypesCompatible(variable.
Type
, typeof(TResult)))
1892
if (locationGenericType == variable.
Type
)
1942
if (argument.
Type
!= typeof(TResult) || argument.Direction != ArgumentDirection.Out)
1946
AddTempValidationError(new ValidationError(SR.ResultArgumentHasRequiredTypeAndDirection(typeof(TResult), argument.Direction, argument.
Type
)));
System\Activities\ActivityContext.cs (4)
192
if (locationReference.
Type
== typeof(T))
198
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.LocationTypeMismatch(locationReference.Name, typeof(T), locationReference.
Type
)));
263
if (!TypeHelper.AreTypesCompatible(value, locationReference.
Type
))
265
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.CannotSetValueToLocation(value != null ? value.GetType() : typeof(T), locationReference.Name, locationReference.
Type
)));
System\Activities\ActivityDelegate.cs (1)
239
if (delegateArgument.
Type
!= runtimeDelegateArgument.Type)
System\Activities\ActivityUtilities.cs (2)
375
Type genericVariableReferenceType = variableReferenceGenericType.MakeGenericType(variable.
Type
);
383
return LocationAccessExpressionTypeDefinitionsCache.CreateNewLocationAccessExpression(locationReference.
Type
, isReference, useLocationReferenceValue, locationReference);
System\Activities\Argument.cs (3)
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)));
System\Activities\CodeActivityPublicEnvironmentAccessor.cs (1)
135
AddGeneratedArgument(sourceReference.
Type
, accessDirection, expression);
System\Activities\DynamicUpdate\ActivityComparer.cs (6)
100
return AreVariableNamesIdentical(leftVar.Name, rightVar.Name) && leftVar.
Type
== rightVar.
Type
&& leftVar.Modifiers == rightVar.Modifiers;
184
currentArgument.
Type
!= originalArgument.
Type
||
227
(newBoundArgument.
Type
== oldBoundArgument.
Type
) &&
System\Activities\DynamicUpdate\ArgumentInfo.cs (3)
32
Fx.Assert(argument.
Type
!= null, "argument Type must not be null.");
33
this.Type = argument.
Type
;
42
this.versionlessAssemblyQualifiedTypeName = GenerateVersionlessAssemblyQualifiedTypeName(argument.
Type
);
System\Activities\DynamicUpdate\DynamicUpdateMapBuilder.cs (2)
932
source, newVariable.Name, newVariable.
Type
, newVariable.Modifiers, oldVariable.Name, oldVariable.
Type
, oldVariable.Modifiers));
System\Activities\Expressions\ArgumentReference.cs (2)
52
else if (this.targetArgument.
Type
!= typeof(T))
54
metadata.AddValidationError(SR.ArgumentTypeMustBeCompatible(this.ArgumentName, this.targetArgument.
Type
, typeof(T)));
System\Activities\Expressions\ArgumentValue.cs (2)
52
else if (!TypeHelper.AreTypesCompatible(this.targetArgument.
Type
, typeof(T)))
54
metadata.AddValidationError(SR.ArgumentTypeMustBeCompatible(this.ArgumentName, this.targetArgument.
Type
, typeof(T)));
System\Activities\Expressions\DelegateArgumentReference.cs (1)
56
metadata.AddValidationError(SR.DelegateArgumentTypeInvalid(this.DelegateArgument, typeof(T), this.DelegateArgument.
Type
));
System\Activities\Expressions\DelegateArgumentValue.cs (2)
54
if (!(this.DelegateArgument is DelegateInArgument<T>) && !TypeHelper.AreTypesCompatible(this.DelegateArgument.
Type
, typeof(T)))
56
metadata.AddValidationError(SR.DelegateArgumentTypeInvalid(this.DelegateArgument, typeof(T), this.DelegateArgument.
Type
));
System\Activities\Expressions\VariableReference.cs (1)
44
metadata.AddValidationError(SR.VariableTypeInvalid(this.Variable, typeof(T), this.Variable.
Type
));
System\Activities\Expressions\VariableValue.cs (2)
42
if (!(this.Variable is Variable<T>) && !TypeHelper.AreTypesCompatible(this.Variable.
Type
, typeof(T)))
44
metadata.AddValidationError(SR.VariableTypeInvalid(this.Variable, typeof(T), this.Variable.
Type
));
System\Activities\ExpressionUtilities.cs (1)
64
return Expression.Call(RuntimeContextParameter, activityContextGetValueGenericMethod.MakeGenericMethod(locationReference.
Type
), Expression.Constant(locationReference, typeof(LocationReference)));
System\Activities\Hosting\SymbolResolver.cs (4)
256
if (externalLocationReference.
Type
== locationReference.
Type
)
271
if (reference.
Type
== type)
388
return resolver.GetLocation(this.Name, this.
Type
);
System\Activities\InlinedLocationReference.cs (1)
47
return this.innerReference.
Type
;
System\Activities\RuntimeArgument.cs (3)
232
if (this.
Type
== argumentType && this.Direction == direction)
258
argument = ActivityUtilities.CreateArgument(this.
Type
, this.Direction);
264
argument = ActivityUtilities.CreateArgument(this.
Type
, this.Direction);
System\Activities\Validation\ActivityValidationServices.cs (2)
138
if (!TypeHelper.AreTypesCompatible(inputArgumentValue, argument.
Type
))
140
ActivityUtilities.Add(ref validationErrors, new ValidationError(SR.InputParametersTypeMismatch(argument.
Type
, argument.Name), rootActivity));
System\Activities\Variable.cs (3)
159
if (expression.ResultType != this.
Type
)
163
new ValidationError(SR.VariableExpressionTypeMismatch(this.Name, this.
Type
, expression.ResultType), false, this.Name, parent));
176
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.VariableNotOpen(this.Name, this.
Type
)));
System\Activities\WorkflowDataContext.cs (1)
227
return this.reference.
Type
;
System\Activities\XamlIntegration\CompiledLocation.cs (1)
149
durableCache.Add(new Tuple<string, Type>(reference.Name, reference.
Type
));
System\Activities\XamlIntegration\TextExpressionCompiler.cs (3)
336
AddMember(runtimeArgument.Name, runtimeArgument.
Type
, contextDescriptor);
349
AddMember(delegateArgument.BoundArgument.Name, delegateArgument.BoundArgument.
Type
, this.compiledDataContexts.Peek());
364
AddMember(v.Name, v.
Type
, contextDescriptor);