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