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