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