60 references to CodeCastExpression
PresentationBuildTasks (1)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1194CodeCastExpression cceTarget = new CodeCastExpression(cc.ElementTypeReference, careTarget);
System.Data (1)
fx\src\data\System\Data\CodeGen\datacache.cs (1)
1430private static CodeExpression Cast(CodeTypeReference type, CodeExpression expr) { return new CodeCastExpression(type, expr); }
System.Data.Entity.Design (4)
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (4)
168valueRef = new CodeCastExpression(typeRef, valueRef); 188new CodeCastExpression(TypeReference.IEntityWithRelationshipsTypeBaseClass, ThisRef), 235new CodeCastExpression(TypeReference.IEntityWithRelationshipsTypeBaseClass, ThisRef), 354new CodeCastExpression(TypeReference.IEntityWithRelationshipsTypeBaseClass, ThisRef),
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (1)
164valueRef = new CodeCastExpression(typeRef, valueRef);
System.Management (41)
WmiGenerator.cs (41)
1192cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cie))); 1382cis.TrueStatements.Add(new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cmie ))); 1477cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cmie ))); 1482cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cie))); 2129cmie.Method.TargetObject = new CodeCastExpression(new CodeTypeReference(((CodeTypeReference)arrKeyType[i]).BaseType + " "),new CodeVariableReferenceExpression("key"+arrKeys[i])); 2279cmieInit.Parameters.Add(new CodeCastExpression( 3029cis.TrueStatements.Add(new CodeAssignStatement(cie,new CodeCastExpression(new CodeTypeReference(cpde.Type.BaseType + " "), 3034cis.TrueStatements.Add(new CodeAssignStatement(cie,new CodeCastExpression(cpde.Type,new CodeVariableReferenceExpression(cpde.Name)))); 3145new CodeCastExpression(ConvertCIMType(prop.Type,prop.IsArray), 3228new CodeCastExpression((CodeTypeReference)inoutParamsType[i], 3310new CodeCastExpression(retRefType,new CodePropertyReferenceExpression(cie,"Value")))); 4450coce.Parameters.Add(new CodeCastExpression(new CodeTypeReference(PublicNamesUsed["LateBoundClass"].ToString()),cmie1)); 4564coce.Parameters.Add(new CodeCastExpression(new CodeTypeReference(PublicNamesUsed["LateBoundClass"].ToString()), 5462new CodeCastExpression(new CodeTypeReference("System.String"), 5589new CodeCastExpression(new CodeTypeReference("System.String"), 5623CodeExpression cs = new CodeCastExpression(new CodeTypeReference("System.Array"), 5659new CodeCastExpression(new CodeTypeReference("System.String"),cmie1), 5738ce = new CodeCastExpression(new CodeTypeReference("System.String"),new CodePropertyReferenceExpression(prop,"Value")); 5742ce = new CodeCastExpression(new CodeTypeReference("System.String"),prop); 5776new CodeCastExpression( 5786new CodeCastExpression( 5844cmie1.Method.TargetObject = new CodeCastExpression(new CodeTypeReference("System.Array"),new CodePropertyReferenceExpression(prop,"Value")); 5848cmie1.Method.TargetObject = new CodeCastExpression(new CodeTypeReference("System.Array"), prop); 5908new CodeCastExpression( 5964cmie1.Method.TargetObject = new CodeCastExpression(new CodeTypeReference("System.Array"),varValue); 6044cmie1.Parameters.Add(new CodeCastExpression(new CodeTypeReference("System.DateTime"),beginingExpression)); 6052cmie2.Parameters.Add(new CodeCastExpression(new CodeTypeReference("System.TimeSpan"),beginingExpression)); 6058return new CodePropertyReferenceExpression(new CodeCastExpression( 6134new CodeCastExpression(new CodeTypeReference("System.Array"),ciProp))); 6168new CodeCastExpression(new CodeTypeReference(strEnumName),cmie2 ))); 6829cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(offsetAdjust),new CodeCastExpression(new CodeTypeReference("System.Int32"),cboe))); 6907new CodeCastExpression( 6997cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int32 "),cpre1),"ToString"); 7014cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int32 "),cpre1),"ToString"); 7031cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int32 "),cpre1),"ToString"); 7094cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int64 "),new CodeVariableReferenceExpression(microsec)),"ToString"); 7250cmie1.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int64 "),cboe2),"ToString"); 7268cmie1.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int64 "),new CodeVariableReferenceExpression(OffsetMins)),"ToString"); 7295cmie1.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int32 "), 7389cmie1.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference("System.Int64 "), 7449cmie.Method = new CodeMethodReferenceExpression(new CodeCastExpression(new CodeTypeReference(strType),
System.ServiceModel (3)
System\ServiceModel\Description\ClientClassGenerator.cs (3)
267CodeMethodInvokeExpression invokeMethod = new CodeMethodInvokeExpression(new CodeMethodReferenceExpression(new CodeCastExpression(ifaceType, new CodeThisReferenceExpression()), method.Name)); 606CodeCastExpression castExpr = new CodeCastExpression(propertyType, propertyValueExpr); 674variableDecl.InitExpression = new CodeCastExpression(variableDecl.Type,
System.Web (4)
Compilation\ProfileBuildProvider.cs (3)
203getLine = new CodeMethodReturnStatement(new CodeCastExpression(prop.Type, cmie)); 253getLine = new CodeMethodReturnStatement(new CodeCastExpression(prop.Type, cmie)); 286CodeMethodReturnStatement returnSatement = new CodeMethodReturnStatement(new CodeCastExpression(method.ReturnType, cmie));
Compilation\TemplateControlCodeDomTreeGenerator.cs (1)
74new CodePropertyReferenceExpression(new CodeCastExpression(classTypeRef, new CodeThisReferenceExpression()), "AppRelativeVirtualPath"),
System.Workflow.Activities (2)
Rules\Parser\Parser.cs (1)
1364unaryResult = new CodeCastExpression(typeRef, unaryResult);
WebServiceReceive.cs (1)
851CodeExpression rightExpression = new CodeCastExpression(new CodeTypeReference(pinfo.ParameterType.GetElementType().FullName), new CodeIndexerExpression(new CodeVariableReferenceExpression("results"), new CodePrimitiveExpression(i + iStartIndex)));
System.Workflow.ComponentModel (2)
AuthoringOM\Serializer\DependencyObjectCodeDomSerializer.cs (1)
119codeMethodInvokeExpr = new CodeMethodInvokeExpression(objectExpression, "SetBinding", new CodeExpression[] { param1, new CodeCastExpression(new CodeTypeReference(typeof(ActivityBind)), param2) });
AuthoringOM\Serializer\PrimitiveCodeDomSerializer.cs (1)
87return new CodeCastExpression(new CodeTypeReference(value.GetType()), expression);
XamlBuildTask (1)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (1)
619new CodeCastExpression(