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