6 references to CodeCastExpression
Microsoft.Build.Tasks.Core (1)
system.design\stronglytypedresourcebuilder.cs (1)
656
ret = new CodeMethodReturnStatement(new
CodeCastExpression
(valueType, new CodeVariableReferenceExpression("obj")));
PresentationBuildTasks (1)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1184
CodeCastExpression cceTarget = new
CodeCastExpression
(cc.ElementTypeReference, careTarget);
System.Windows.Forms.Design (4)
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (2)
511
CodeCastExpression castExp =
new
(type, valueExpression);
530
CodeCastExpression castExp =
new
(type, valueExpression);
System\ComponentModel\Design\Serialization\PrimitiveCodeDomSerializer.cs (1)
29
_ => new
CodeCastExpression
(new CodeTypeReference(value.GetType()), new CodePrimitiveExpression(value)),
System\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
802
returnStatement = new(new
CodeCastExpression
(valueType, new CodeVariableReferenceExpression("obj")));