22 references to CodeCastExpression
System.Activities (1)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (1)
1122
dataContextVariable.InitExpression = new
CodeCastExpression
(descriptor.TypeName, compiledDataContextIndexer);
System.Data (1)
fx\src\data\System\Data\CodeGen\datacache.cs (1)
1429
private static CodeExpression Cast(string type , CodeExpression expr) { return new
CodeCastExpression
(type, expr); }
System.Management (7)
WmiGenerator.cs (7)
6578
cast = new
CodeCastExpression
("System.Int64", cboe);
6758
cast = new
CodeCastExpression
("System.Int64", cboe);
6834
cmie.Parameters.Add(new
CodeCastExpression
("System.Double",new CodeVariableReferenceExpression(offsetAdjust)));
7086
new
CodeCastExpression
("System.Int64", cboe2)
7194
cast = new
CodeCastExpression
("System.Int64", cboe);
7376
cast = new
CodeCastExpression
("System.Int64", cboe2);
7631
new
CodeCastExpression
(
System.ServiceModel (1)
System\ServiceModel\Description\ClientClassGenerator.cs (1)
796
eventArgsDecl.InitExpression = new
CodeCastExpression
(invokeAsyncCompletedEventArgsTypeName,
System.Web (3)
Compilation\BaseCodeDomTreeGenerator.cs (1)
532
prop.GetStatements.Add(new CodeMethodReturnStatement(new
CodeCastExpression
(
Compilation\BaseTemplateCodeDomTreeGenerator.cs (1)
255
CodeCastExpression cast = new
CodeCastExpression
(builder.ControlType.FullName,
Compilation\DataBindingExpressionBuilder.cs (1)
125
new
CodeCastExpression
(itemType,
System.Web.Services (6)
System\Web\Services\Description\HttpProtocolImporter.cs (2)
180
mainCodeMethod.Statements.Add(new CodeMethodReturnStatement(new
CodeCastExpression
(method.MimeReturn.TypeName, invoke)));
222
endCodeMethod.Statements.Add(new CodeMethodReturnStatement(new
CodeCastExpression
(method.MimeReturn.TypeName, invoke)));
System\Web\Services\Description\SoapProtocolImporter.cs (3)
980
value = new
CodeCastExpression
(WebCodeGenerator.FullTypeName(parameter.mapping, ServiceImporter.CodeGenerator), value);
987
value = new
CodeCastExpression
(typeof(bool).FullName, value);
996
value = new
CodeCastExpression
(WebCodeGenerator.FullTypeName(parameters.Return, ServiceImporter.CodeGenerator), value);
System\Web\Services\Description\WebCodeGenerator.cs (1)
414
ret.Expression = new
CodeCastExpression
(typeName, valueRef);
System.Xml (3)
System\Xml\Serialization\XmlCodeExporter.cs (3)
238
initExpression = new
CodeCastExpression
(type.FullName, new CodePrimitiveExpression(value));
251
initExpression = new
CodeCastExpression
(type.FullName, new CodePrimitiveExpression(value));
283
initExpression = new
CodeCastExpression
(mapping.TypeDesc.FullName, initExpression);