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