172 references to CodeMethodReturnStatement
PresentationBuildTasks (4)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (4)
2529cmmCD.Statements.Add(new CodeMethodReturnStatement(cmieCD)); 2708cmmCI.Statements.Add(new CodeMethodReturnStatement(cmieCI)); 2737cmmGPV.Statements.Add(new CodeMethodReturnStatement(cmieGPV)); 2819cmmCD.Statements.Add(new CodeMethodReturnStatement(cceCD));
System.Activities (22)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (22)
498CodeMethodReturnStatement getterStatement = new CodeMethodReturnStatement( 722languageProperty.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(this.settings.Language))); 832getLocationsMethod.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); 859getLocationsMethod.Statements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("returnLocations"))); 902CodeMethodReturnStatement conditionStatement = new CodeMethodReturnStatement( 914getExpressionTreeForExpressionMethod.Statements.Add(new CodeMethodReturnStatement( 1001invokeExpressionMethod.Statements.Add(new CodeMethodReturnStatement( 1200CodeMethodReturnStatement returnStatement = new CodeMethodReturnStatement(getLocationExpression); 1227CodeMethodReturnStatement returnStatement = new CodeMethodReturnStatement(expressionInvoke); 1254CodeMethodReturnStatement returnStatement = new CodeMethodReturnStatement(new CodePrimitiveExpression(null)); 1336matchCondition.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(true))); 1347new CodeMethodReturnStatement( 1484expressionMethod.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); 1515expressionMethod.Statements.Add(new CodeMethodReturnStatement(invokeExpression)); 1519expressionMethod.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); 1542CodeStatement statement = new CodeMethodReturnStatement(new CodeSnippetExpression(expressionText)); 1561wrapperMethod.Statements.Add(new CodeMethodReturnStatement( 1837new CodeMethodReturnStatement( 1895new CodeMethodReturnStatement( 2233new CodeMethodReturnStatement( 2282new CodeMethodReturnStatement(invokeBase)); 2287new CodeMethodReturnStatement(
System.Data (1)
fx\src\data\System\Data\CodeGen\datacache.cs (1)
1485private static CodeStatement Return(CodeExpression expr) { return new CodeMethodReturnStatement(expr);}
System.Data.Entity.Design (9)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (2)
525CodeMethodReturnStatement returnViewMethodCall = new CodeMethodReturnStatement(new CodeMethodInvokeExpression(new CodeMethodReferenceExpression(null, viewMethod.Name))); 574viewMethod.Statements.Add(new CodeMethodReturnStatement(newExpression));
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (2)
404new CodeMethodReturnStatement( 555new CodeMethodReturnStatement(
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (1)
270property.GetStatements.Add(new CodeMethodReturnStatement(getReturnExpression));
System\Data\EntityModel\Emitters\PropertyEmitter.cs (3)
257statements.Add(new CodeMethodReturnStatement(FieldRef)); 266new CodeMethodReturnStatement( 275statements.Add(new CodeMethodReturnStatement(FieldRef));
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (1)
236method.Statements.Add(new CodeMethodReturnStatement(instanceRef));
System.Data.Services.Design (13)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (7)
284new CodeMethodReturnStatement( 312new CodeMethodReturnStatement( 346new CodeMethodReturnStatement( 371new CodeMethodReturnStatement( 386resolveNameFromType.Statements.Add(new CodeMethodReturnStatement(clientTypeFullName)); 392new CodeMethodReturnStatement( 565new CodeMethodReturnStatement(
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (1)
271property.GetStatements.Add(new CodeMethodReturnStatement(getReturnExpression));
System\Data\EntityModel\Emitters\PropertyEmitter.cs (4)
274statements.Add(new CodeMethodReturnStatement(FieldRef)); 289new CodeMethodReturnStatement( 297new CodeMethodReturnStatement( 307statements.Add(new CodeMethodReturnStatement(FieldRef));
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (1)
237method.Statements.Add(new CodeMethodReturnStatement(instanceRef));
System.Management (77)
WmiGenerator.cs (77)
994cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodeSnippetExpression(propValue.ToString()))); 998cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodePrimitiveExpression(propValue))); 1039cmp.GetStatements.Add(new CodeMethodReturnStatement(Value)); 1077cis.TrueStatements.Add(new CodeMethodReturnStatement(cpre)); 1078cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); 1192cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cie))); 1343cis.TrueStatements.Add(new CodeMethodReturnStatement (new CodePrimitiveExpression(true) )); 1344cis.FalseStatements.Add(new CodeMethodReturnStatement (new CodePrimitiveExpression(false) )); 1369cis.TrueStatements.Add(new CodeMethodReturnStatement (new CodePrimitiveExpression(null))); 1382cis.TrueStatements.Add(new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cmie ))); 1399cis.TrueStatements.Add(new CodeMethodReturnStatement( 1406cis.TrueStatements.Add(new CodeMethodReturnStatement (cmie)); 1434cis2.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(true))); 1437cmm.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(false))); 1477cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cmie ))); 1482cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cie))); 2102cmm.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(strPath))); 2139cmm.Statements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(strPathObject))); 3254cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar"))); 3255cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); 3266cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar"))); 3267cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar"))); 3285cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar"))); 3286cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar"))); 3297cis.TrueStatements.Add(new CodeMethodReturnStatement(cmie)); 3304cis.FalseStatements.Add(new CodeMethodReturnStatement(cmie)); 3309cis.TrueStatements.Add(new CodeMethodReturnStatement( 3312cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); 3345cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3377cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3408cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3441cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3566cmm.Statements.Add(new CodeMethodReturnStatement(coce)); 3599cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3631cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3733cmm.Statements.Add(new CodeMethodReturnStatement(coce)); 3866cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3890cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3916cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3940cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3961cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 3986cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 4005cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 4024cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 4043cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 4062cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 4120CodeMethodReturnStatement returnStatement = new CodeMethodReturnStatement(cmie); 4152cis.TrueStatements.Add(new CodeConditionStatement(cboe2,new CodeMethodReturnStatement(new CodeVariableReferenceExpression("value")))); 4180cis.TrueStatements.Add(new CodeConditionStatement(cboe7,new CodeMethodReturnStatement(new CodeSnippetExpression(" \"NULL_ENUM_VALUE\" ")))); 4245cis.TrueStatements.Add(new CodeConditionStatement(cboe7,new CodeMethodReturnStatement(new CodePrimitiveExpression("")))); 4278cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(""))); 4345cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodePropertyReferenceExpression( 4363cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodePropertyReferenceExpression( 4380cmp.GetStatements.Add(new CodeMethodReturnStatement(new CodeThisReferenceExpression())); 4473cmm.Statements.Add(new CodeMethodReturnStatement(coce)); 4568cmp.GetStatements.Add(new CodeMethodReturnStatement(coce)); 4600cmm.Statements.Add(new CodeMethodReturnStatement(cmie)); 5492cmp.GetStatements.Add (new CodeMethodReturnStatement (new CodeVariableReferenceExpression(strRetVar))); 5548cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(true))); 5559cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodeMethodInvokeExpression(cmre,coce))); 5621cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(true))); 5676cis2.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(true))); 5684cmm.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(false))); 5719cis1.TrueStatements.Add (new CodeMethodReturnStatement(CreateObjectForProperty(strType,cmie))); 5721statColl.Add (new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); 5747cis1.TrueStatements.Add(new CodeMethodReturnStatement(CreateObjectForProperty(strType,ce))); 5748cis1.FalseStatements.Add(new CodeMethodReturnStatement(CreateObjectForProperty(strType,null))); 5862cis1.TrueStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(strArray))); 5864statColl.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); 6104cis.TrueStatements.Add(new CodeMethodReturnStatement(Value)); 6105cis.FalseStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); 6173cmProp.GetStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(ArrToRet))); 6361cmm.Statements.Add(new CodeMethodReturnStatement(coce)); 6842cmmdt.Statements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(datetimeVariable))); 7138cmmts.Statements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(dmtfTimeSpan))); 7437cmmdt.Statements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(dmtfDateTime))); 7771cmmts.Statements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(timespan)));
System.Runtime.Serialization (2)
System\Runtime\Serialization\CodeExporter.cs (2)
1714getSchemaMethod.Statements.Add(new CodeMethodReturnStatement(NullReference)); 1738new CodeMethodReturnStatement(
System.ServiceModel (7)
System\ServiceModel\Description\ClientClassGenerator.cs (7)
303helperMethod.Statements.Add(new CodeMethodReturnStatement(invokeMethod)); 333returnStatement = new CodeMethodReturnStatement(fieldRef); 466method.Statements.Add(new CodeMethodReturnStatement(methodInvoke)); 607CodeMethodReturnStatement returnStmt = new CodeMethodReturnStatement(castExpr); 689onBeginOperationMethod.Statements.Add(new CodeMethodReturnStatement(invokeBegin)); 758onEndOperationMethod.Statements.Add(new CodeMethodReturnStatement(retArray)); 762onEndOperationMethod.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
System.ServiceModel.Activation (1)
System\ServiceModel\Activities\Activation\XamlBuildProviderExtension.cs (1)
176codeMemberMethod.Statements.Add(new CodeMethodReturnStatement(expr));
System.Web (24)
Compilation\BaseCodeDomTreeGenerator.cs (4)
532prop.GetStatements.Add(new CodeMethodReturnStatement(new CodeCastExpression( 554prop.GetStatements.Add(new CodeMethodReturnStatement(fieldRef)); 621prop.GetStatements.Add(new CodeMethodReturnStatement(fieldAccess)); 662prop.GetStatements.Add(new CodeMethodReturnStatement(new CodeCastExpression(declaredType, getObject)));
Compilation\BaseTemplateCodeDomTreeGenerator.cs (2)
964statements.Add(new CodeMethodReturnStatement(ctrlRefExpr)); 1011CodeMethodReturnStatement returnStatement = new CodeMethodReturnStatement(new CodeVariableReferenceExpression(tableVarName));
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (3)
127createObjectStatement.TrueStatements.Add(new CodeMethodReturnStatement(getServiceExpr)); 132createObjectStatement.FalseStatements.Add(new CodeMethodReturnStatement(newObjectExpr)); 145statements.Add(new CodeMethodReturnStatement(newObjectExpression));
Compilation\PageCodeDomTreeGenerator.cs (3)
363method.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(Parser.TypeHashCode))); 472method.Statements.Add(new CodeMethodReturnStatement(invokeExpr)); 530method.Statements.Add(new CodeMethodReturnStatement(invokeExpr));
Compilation\PageThemeCodeDomTreeGenerator.cs (1)
46CodeMethodReturnStatement returnStmt = new CodeMethodReturnStatement(expr);
Compilation\ProfileBuildProvider.cs (3)
203getLine = new CodeMethodReturnStatement(new CodeCastExpression(prop.Type, cmie)); 253getLine = new CodeMethodReturnStatement(new CodeCastExpression(prop.Type, cmie)); 286CodeMethodReturnStatement returnSatement = new CodeMethodReturnStatement(new CodeCastExpression(method.ReturnType, cmie));
Compilation\TemplateControlCodeDomTreeGenerator.cs (4)
131prop.GetStatements.Add(new CodeMethodReturnStatement(new CodeCastExpression(propertyType, propRef))); 155bindMethod.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(String.Empty))); 237prop.GetStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(false))); 268prop.GetStatements.Add(new CodeMethodReturnStatement(new CodeCastExpression(
Configuration\BrowserCapabilitiesCodeGenerator.cs (4)
1079CodeMethodReturnStatement cmrs = new CodeMethodReturnStatement(new CodePrimitiveExpression(true)); 1142emptyCheckStmt.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(false))); 1243istatement.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(false))); 1304istatement.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(false)));
System.Web.Services (5)
System\Web\Services\Description\HttpProtocolImporter.cs (3)
180mainCodeMethod.Statements.Add(new CodeMethodReturnStatement(new CodeCastExpression(method.MimeReturn.TypeName, invoke))); 211beginCodeMethod.Statements.Add(new CodeMethodReturnStatement(invoke)); 222endCodeMethod.Statements.Add(new CodeMethodReturnStatement(new CodeCastExpression(method.MimeReturn.TypeName, invoke)));
System\Web\Services\Description\SoapProtocolImporter.cs (2)
873beginCodeMethod.Statements.Add(new CodeMethodReturnStatement(invoke)); 997codeMethod.Statements.Add(new CodeMethodReturnStatement(value));
System.Workflow.Activities (1)
WebServiceReceive.cs (1)
866CodeMethodReturnStatement methodReturnStatement = new CodeMethodReturnStatement(new CodeCastExpression(methodInfo.ReturnType, new CodeIndexerExpression(returnTargetExpression, new CodePrimitiveExpression(0))));
XamlBuildTask (6)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (6)
933new CodeMethodReturnStatement(CodeThis.Field(fieldMember.Name)) 1111AssemblyList.GetStatements.Add(new CodeMethodReturnStatement(assemblyList)); 1167new CodeMethodReturnStatement(xsc)); 1185SchemaContext.GetStatements.Add(new CodeMethodReturnStatement(xsc)); 1273loadMethod.Statements.Add(new CodeMethodReturnStatement(asm)); 1326loadAssembliesMethod.Statements.Add(new CodeMethodReturnStatement(assemblyList));