14 instantiations of CodeCastExpression
dotnet-svcutil-lib (14)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (2)
222CodeCastExpression iXmlSerCast = new CodeCastExpression(new CodeTypeReference(typeof(Microsoft.Xml.Serialization.IXmlSerializable)), eCurrent); 264CodeCastExpression iXmlSerCast = new CodeCastExpression(new CodeTypeReference(typeof(Microsoft.Xml.Serialization.IXmlSerializable)), new CodeVariableReferenceExpression("elem"));
CodeDomFixup\CodeDomVisitors\AddAsyncOpenClose.cs (2)
43new CodeCastExpression() 79TargetObject = new CodeCastExpression()
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (2)
256InitExpression = new CodeCastExpression() 382CodeCastExpression castExpr = new CodeCastExpression(param.Type, new CodeArrayIndexerExpression(resultsFieldReference, new CodePrimitiveExpression(paramIndex)));
CodeDomFixup\CodeDomVisitors\MakeOldAsyncMethodsPrivate.cs (1)
87methodInvoke.Method.TargetObject = new CodeCastExpression(targetMethod.InterfaceType, methodInvoke.Method.TargetObject);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (3)
265initExpression = new CodeCastExpression(type.FullName, new CodePrimitiveExpression(value)); 279initExpression = new CodeCastExpression(type.FullName, new CodePrimitiveExpression(value)); 316initExpression = new CodeCastExpression(mapping.TypeDesc.FullName, initExpression);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (4)
267CodeMethodInvokeExpression invokeMethod = new CodeMethodInvokeExpression(new CodeMethodReferenceExpression(new CodeCastExpression(ifaceType, new CodeThisReferenceExpression()), method.Name)); 605CodeCastExpression castExpr = new CodeCastExpression(propertyType, propertyValueExpr); 673variableDecl.InitExpression = new CodeCastExpression(variableDecl.Type, 795eventArgsDecl.InitExpression = new CodeCastExpression(s_invokeAsyncCompletedEventArgsTypeName,
19 references to CodeCastExpression
dotnet-svcutil-lib (19)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (2)
222CodeCastExpression iXmlSerCast = new CodeCastExpression(new CodeTypeReference(typeof(Microsoft.Xml.Serialization.IXmlSerializable)), eCurrent); 264CodeCastExpression iXmlSerCast = new CodeCastExpression(new CodeTypeReference(typeof(Microsoft.Xml.Serialization.IXmlSerializable)), new CodeVariableReferenceExpression("elem"));
CodeDomFixup\CodeDomVisitors\CodeDomVisitor.cs (4)
127protected override void Visit(CodeCastExpression expr) 600else if (expr is CodeCastExpression) 601Visit((CodeCastExpression)expr); 651protected virtual void Visit(CodeCastExpression expr) { }
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (1)
382CodeCastExpression castExpr = new CodeCastExpression(param.Type, new CodeArrayIndexerExpression(resultsFieldReference, new CodePrimitiveExpression(paramIndex)));
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (3)
728else if (e is CodeCastExpression) 730GenerateCastExpression((CodeCastExpression)e); 1635protected abstract void GenerateCastExpression(CodeCastExpression e);
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (3)
737else if (e is CodeCastExpression) 739ValidateCastExpression((CodeCastExpression)e); 865private void ValidateCastExpression(CodeCastExpression e)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (3)
853private void GenerateCastExpression(CodeCastExpression e) 1873else if (e is CodeCastExpression) 1875GenerateCastExpression((CodeCastExpression)e);
FrameworkFork\Microsoft.CodeDom\System\CodeCastExpression.cs (2)
31/// Initializes a new instance of <see cref='Microsoft.CodeDom.CodeCastExpression'/>. 40/// Initializes a new instance of <see cref='Microsoft.CodeDom.CodeCastExpression'/> using the specified
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (1)
605CodeCastExpression castExpr = new CodeCastExpression(propertyType, propertyValueExpr);