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