36 references to CodeCastExpression
PresentationBuildTasks (3)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (3)
1015
CodeCastExpression cceTarget = new
CodeCastExpression
(KnownTypes.Types[(int)KnownElements.Style], careTarget);
1069
cceTarget = new
CodeCastExpression
( eventTarget, careTarget);
2818
CodeCastExpression cceCD = new
CodeCastExpression
(typeof(Delegate), cmieCD);
System.Activities (2)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (2)
499
new
CodeCastExpression
(memberData.Type, new CodeMethodInvokeExpression(
1682
CodeExpression getValue = new
CodeCastExpression
(
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
290
new
CodeCastExpression
(typeof(byte[]),
System.Web (23)
Compilation\BaseCodeDomTreeGenerator.cs (2)
654
new
CodeCastExpression
(declaredType, getObject),
662
prop.GetStatements.Add(new CodeMethodReturnStatement(new
CodeCastExpression
(declaredType, getObject)));
Compilation\BaseTemplateCodeDomTreeGenerator.cs (5)
130
parserDeclaration.InitExpression = new
CodeCastExpression
(
493
setStatement.Right = new
CodeCastExpression
(typeof(ITemplate), new CodeIndexerExpression(contentTemplatesFieldRef,
1066
CodeCastExpression castExpression = new
CodeCastExpression
(entry.ControlType, findControlCallExpression);
1255
new
CodeCastExpression
(builder.ControlType,
1262
new
CodeCastExpression
(bindingContainerType,
Compilation\CodeDOMUtility.cs (5)
137
rightExpr = new
CodeCastExpression
(valueType, methCall);
259
methodInvoke.Method.TargetObject = new
CodeCastExpression
(typeof(IAttributeAccessor), target);
276
new
CodeCastExpression
(destinationType, value));
289
rightSide = new
CodeCastExpression
(destinationType, value);
353
CodeCastExpression castedExpression = new
CodeCastExpression
(castType, expression);
Compilation\DataBindingExpressionBuilder.cs (2)
90
new
CodeCastExpression
(controlBuilder.ControlType,
101
new
CodeCastExpression
(bindingContainerType,
Compilation\TemplateControlCodeDomTreeGenerator.cs (2)
131
prop.GetStatements.Add(new CodeMethodReturnStatement(new
CodeCastExpression
(propertyType, propRef)));
268
prop.GetStatements.Add(new CodeMethodReturnStatement(new
CodeCastExpression
(
Configuration\BrowserCapabilitiesCodeGenerator.cs (6)
1186
valueAssignment.Right = new
CodeCastExpression
(typeof(string),
1198
valueAssignment.Right = new
CodeCastExpression
(typeof(string),
1265
valueAssignment.Right = (new
CodeCastExpression
(typeof(string),
1342
cmie.Parameters.Add(new
CodeCastExpression
(typeof(string),
1352
new
CodeCastExpression
(typeof(string),
1379
new
CodeCastExpression
(typeof(string),
UI\SimplePropertyEntry.cs (1)
69
new
CodeCastExpression
(typeof(IAttributeAccessor), ctrlRefExpr),
System.Web.Services (1)
System\Web\Services\Description\WebCodeGenerator.cs (1)
295
trueStatements[0] = new CodeVariableDeclarationStatement(typeof(InvokeCompletedEventArgs), "invokeArgs", new
CodeCastExpression
(typeof(InvokeCompletedEventArgs), new CodeArgumentReferenceExpression("arg")));
System.Workflow.Activities (1)
WebServiceReceive.cs (1)
866
CodeMethodReturnStatement methodReturnStatement = new CodeMethodReturnStatement(new
CodeCastExpression
(methodInfo.ReturnType, new CodeIndexerExpression(returnTargetExpression, new CodePrimitiveExpression(0))));
System.Workflow.ComponentModel (1)
AuthoringOM\Serializer\PrimitiveCodeDomSerializer.cs (1)
64
expression = new
CodeCastExpression
(value.GetType(), expression);
XamlBuildTask (4)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (4)
639
CodeCastExpression iDisposibleCastXmlReader = new
CodeCastExpression
(typeof(IDisposable), xmlReaderVar);
646
CodeCastExpression iDisposibleCastXamlReader = new
CodeCastExpression
(typeof(IDisposable), xamlReaderVar);
653
CodeCastExpression iDisposibleCastObjWriter = new
CodeCastExpression
(typeof(IDisposable), objWriterVar);
1164
new
CodeCastExpression
(typeof(XamlSchemaContext), new CodePropertyReferenceExpression(schemaContext, "Target")));