3 writes to TrueStatements
XamlBuildTask (3)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (3)
408TrueStatements = { 445TrueStatements = 801TrueStatements = {
171 references to TrueStatements
PresentationBuildTasks (9)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (9)
1028ccsConnector.TrueStatements.Add(casES); 1029ccsConnector.TrueStatements.Add(casEvent); 1030ccsConnector.TrueStatements.Add(casHandler); 1031ccsConnector.TrueStatements.Add(new CodeExpressionStatement(cmieAdd)); 1082ccsConnector.TrueStatements.Add( csAddCLREvent ); 1210ccsConnector.TrueStatements.Add(casName); 1226ccsConnector.TrueStatements.Add(csEvent); 1239ccsConnector.TrueStatements.Add(new CodeMethodReturnStatement()); 2556ccsCL.TrueStatements.Add(new CodeMethodReturnStatement());
System (5)
compmod\microsoft\csharp\csharpcodeprovider.cs (1)
1460GenerateStatements(e.TrueStatements);
compmod\microsoft\visualbasic\VBCodeProvider.cs (1)
1542GenerateVBStatements(e.TrueStatements);
compmod\system\codedom\CodeConditionStatement.cs (2)
47TrueStatements.AddRange(trueStatements); 58TrueStatements.AddRange(trueStatements);
compmod\system\codedom\compiler\CodeValidator.cs (1)
439ValidateStatements(e.TrueStatements);
System.Activities (2)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (2)
1335matchCondition.TrueStatements.Add(assignId); 1336matchCondition.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(true)));
System.Data.Entity.Design (1)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (1)
526currentIf.TrueStatements.Add(returnViewMethodCall);
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (1)
229csc = ccs.TrueStatements;
System.Management (113)
WmiGenerator.cs (113)
1077cis.TrueStatements.Add(new CodeMethodReturnStatement(cpre)); 1107cis1.TrueStatements.Add(new CodeThrowExceptionStatement(coce)); 1108cis.TrueStatements.Add(cis1); 1111cis.TrueStatements.Add(new CodeAssignStatement(cpre, 1343cis.TrueStatements.Add(new CodeMethodReturnStatement (new CodePrimitiveExpression(true) )); 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))); 1555ccs.TrueStatements.Add(new CodeAssignStatement(cie,new CodePrimitiveExpression(null))); 1594cis.TrueStatements.Add(new CodeExpressionStatement(cmie)); 2595cis.TrueStatements.Add(new CodeAssignStatement( 2602cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["SystemPropertiesObject"].ToString()),coce)); 2603cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()), 2663cis.TrueStatements.Add(new CodeAssignStatement( 2670cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["SystemPropertiesObject"].ToString()),coce)); 2671cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()), 2674cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["IsEmbedded"].ToString()), 2754cis1.TrueStatements.Add(new CodeThrowExceptionStatement(coce)); 2756cis.TrueStatements.Add(cis1); 2905cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()), 2915cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()),strPath,cocePath)); 2926cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()),strClassObj,coce1)); 2941cis.TrueStatements.Add(new CodeVariableDeclarationStatement("System.Boolean", 2944cis.TrueStatements.Add(new CodeAssignStatement(cprePriveleges, new CodePrimitiveExpression(true))); 2965cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strInParams),cmie)); 3007AddPropertySet(cie,prop.IsArray,cis.TrueStatements,PublicNamesUsed["PathClass"].ToString(),new CodeVariableReferenceExpression(cpde.Name)); 3016AddPropertySet(cie,prop.IsArray,cis.TrueStatements,"System.TimeSpan",new CodeVariableReferenceExpression(cpde.Name)); 3020AddPropertySet(cie,prop.IsArray,cis.TrueStatements,"System.DateTime",new CodeVariableReferenceExpression(cpde.Name)); 3029cis.TrueStatements.Add(new CodeAssignStatement(cie,new CodeCastExpression(new CodeTypeReference(cpde.Type.BaseType + " "), 3034cis.TrueStatements.Add(new CodeAssignStatement(cie,new CodeCastExpression(cpde.Type,new CodeVariableReferenceExpression(cpde.Name)))); 3067cis.TrueStatements.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()),strOutParams,cmie)); 3124GenerateCodeForRefAndDateTimeTypes(cie,prop.IsArray,cis.TrueStatements,PublicNamesUsed["PathClass"].ToString(),new CodeVariableReferenceExpression(prop.Name),true); 3133GenerateCodeForRefAndDateTimeTypes(cie,prop.IsArray,cis.TrueStatements,"System.TimeSpan",new CodeVariableReferenceExpression(prop.Name),true); 3137GenerateCodeForRefAndDateTimeTypes(cie,prop.IsArray,cis.TrueStatements,"System.DateTime",new CodeVariableReferenceExpression(prop.Name),true); 3144cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name), 3155cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),cmie2)); 3218cis.TrueStatements.Add(cmis); 3227cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(inoutParams[i].ToString()), 3236cis.TrueStatements.Add(new CodeAssignStatement(cprePriveleges, new CodeVariableReferenceExpression(PrivateNamesUsed["Privileges"].ToString()))); 3253GenerateCodeForRefAndDateTimeTypes(cie,isRetArray,cis.TrueStatements,PublicNamesUsed["PathClass"].ToString(),new CodeVariableReferenceExpression("retVar"),true); 3254cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar"))); 3265GenerateCodeForRefAndDateTimeTypes(cie,isRetArray,cis.TrueStatements,"System.DateTime",new CodeVariableReferenceExpression("retVar"),true); 3266cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar"))); 3284GenerateCodeForRefAndDateTimeTypes(cie,isRetArray,cis.TrueStatements,"System.TimeSpan",new CodeVariableReferenceExpression("retVar"),true); 3285cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar"))); 3297cis.TrueStatements.Add(new CodeMethodReturnStatement(cmie)); 3309cis.TrueStatements.Add(new CodeMethodReturnStatement( 3502cis1.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()),coce)); 3504cis1.TrueStatements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression( 3513cis.TrueStatements.Add(cis1); 3549cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["EnumParam"].ToString()), 3551cis.TrueStatements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression( 3683cis1.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()),coce)); 3685cis1.TrueStatements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression( 3694cis.TrueStatements.Add(cis1); 4152cis.TrueStatements.Add(new CodeConditionStatement(cboe2,new CodeMethodReturnStatement(new CodeVariableReferenceExpression("value")))); 4180cis.TrueStatements.Add(new CodeConditionStatement(cboe7,new CodeMethodReturnStatement(new CodeSnippetExpression(" \"NULL_ENUM_VALUE\" ")))); 4182cis.TrueStatements.Add(returnStatement); 4245cis.TrueStatements.Add(new CodeConditionStatement(cboe7,new CodeMethodReturnStatement(new CodePrimitiveExpression("")))); 4247cis.TrueStatements.Add(returnStatement); 4278cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(""))); 5072cis.TrueStatements.Add(new CodeExpressionStatement(cmie)); 5107cis.TrueStatements.Add(new CodeExpressionStatement(cmie)); 5459cis.TrueStatements.Add(cis1); 5461cis1.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strRetVar), 5485cis2.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strRetVar), 5488cis1.TrueStatements.Add(cis2); 5548cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(true))); 5621cis.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(true))); 5639cis1.TrueStatements.Add(new CodeVariableDeclarationStatement("System.Int32",strnCtr,new CodePrimitiveExpression(0))); 5676cis2.TrueStatements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(true))); 5678cis1.TrueStatements.Add(cfls); 5719cis1.TrueStatements.Add (new CodeMethodReturnStatement(CreateObjectForProperty(strType,cmie))); 5727cis1.TrueStatements.Add (new CodeAssignStatement(varToAssign ,CreateObjectForProperty(strType,cmie))); 5747cis1.TrueStatements.Add(new CodeMethodReturnStatement(CreateObjectForProperty(strType,ce))); 5752cis1.TrueStatements.Add(new CodeAssignStatement(varToAssign,CreateObjectForProperty(strType,ce))); 5793cis1.TrueStatements.Add( 5805cis1.TrueStatements.Add( 5859cis1.TrueStatements.Add(cfls); 5862cis1.TrueStatements.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(strArray))); 5870cis1.TrueStatements.Add(new CodeAssignStatement(varToAssign ,new CodeVariableReferenceExpression(strArray))); 5915cis1.TrueStatements.Add( 5926cis1.TrueStatements.Add( 5971cis1.TrueStatements.Add(cfls); 5973cis1.TrueStatements.Add(new CodeAssignStatement(prop,new CodeVariableReferenceExpression(strArray))); 6104cis.TrueStatements.Add(new CodeMethodReturnStatement(Value)); 6116cis.TrueStatements.Add(new CodeAssignStatement(Value, 6325cis1.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strScope),coce)); 6327cis1.TrueStatements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression( 6498cis.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException)); 6517cis.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException)); 6534cis.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException)); 6585cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(ticks),cboe2)); 6670cis.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException)); 6807cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(tempStr), cmie)); 6823cis.TrueStatements.Add(tryblock2); 6829cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(offsetAdjust),new CodeCastExpression(new CodeTypeReference("System.Int32"),cboe))); 6835cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(datetimeVariable),cmie)); 6876cis.TrueStatements.Add( new CodeAssignStatement(new CodeVariableReferenceExpression(toAssign),cmie)); 6957cis.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException)); 6987cis2.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException)); 7117cis.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strmicrosec),cmie)); 7227cis1.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dateParam),cmie1)); 7228cis1.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strUtc),new CodePrimitiveExpression("+000"))); 7257cis2.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strUtc), 7413cis1.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strmicrosec),cmie1)); 7514cis.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException)); 7533cis.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException)); 7551cis.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException)); 7574cis.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException)); 7702cis.TrueStatements.Add(new CodeThrowExceptionStatement(codeThrowException));
System.Runtime.Serialization (4)
System\Runtime\Serialization\CodeExporter.cs (4)
1818returnIfNull.TrueStatements.Add(new CodeMethodReturnStatement()); 1914ifStatement.TrueStatements.Add(new CodeDelegateInvokeExpression(propertyChanged, ThisReference, new CodeObjectCreateExpression(typeof(PropertyChangedEventArgs), propertyName))); 1971ifStatement.TrueStatements.Add(propertySet); 1972ifStatement.TrueStatements.Add(new CodeMethodInvokeExpression(ThisReference, RaisePropertyChangedEventMethod.Name, new CodePrimitiveExpression(propertyName)));
System.Web (28)
Compilation\BaseCodeDomTreeGenerator.cs (3)
455this.BuildInitStatements(initializedCondition.TrueStatements, InitMethod.Statements); 457initializedCondition.TrueStatements.Add(new CodeAssignStatement( 618ifStmt.TrueStatements.Add(new CodeAssignStatement(fieldAccess, propertyInitExpression));
Compilation\BaseTemplateCodeDomTreeGenerator.cs (5)
504contentTemplateIfStmt.TrueStatements.Add(setStatement); 531templateIfStmt.TrueStatements.Add(new CodeExpressionStatement(instantiateTemplateExpr)); 925templateIfStmt.TrueStatements.Add(methCallStatement); 1099ifStatement.TrueStatements.Add(tableIndexAssign); 1765currentStmts = ifStmt.TrueStatements;
Compilation\DataBindingExpressionBuilder.cs (1)
60ifStmt.TrueStatements.AddRange(evalStatements);
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (1)
127createObjectStatement.TrueStatements.Add(new CodeMethodReturnStatement(getServiceExpr));
Compilation\PageCodeDomTreeGenerator.cs (14)
199outputCacheSettingsCondition.TrueStatements.Insert(0, outputCacheSettingsDeclaration); 212outputCacheSettingsCondition.TrueStatements.Add(setOutputCacheObject); 219outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 227outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 235outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 245outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 253outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 261outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 269outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 277outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 285outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 292outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 300outputCacheSettingsCondition.TrueStatements.Add(setPropertyStatement); 309outputCacheSettingsCondition.TrueStatements.Add(assignOutputCacheSettings);
Configuration\BrowserCapabilitiesCodeGenerator.cs (4)
756istatement.TrueStatements.Add(new CodeMethodReturnStatement()); 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.Xml (1)
System\Xml\Serialization\CodeExporter.cs (1)
361ifStatement.TrueStatements.Add(new CodeDelegateInvokeExpression(propertyChanged, new CodeThisReferenceExpression(), new CodeObjectCreateExpression(typeof(PropertyChangedEventArgs), propertyName)));
XamlBuildTask (7)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (7)
640xmlReaderNotNull.TrueStatements.Add(new CodeMethodInvokeExpression(iDisposibleCastXmlReader, "Dispose")); 647xamlReaderNotNull.TrueStatements.Add(new CodeMethodInvokeExpression(iDisposibleCastXamlReader, "Dispose")); 654objWriterNotNull.TrueStatements.Add(new CodeMethodInvokeExpression(iDisposibleCastObjWriter, "Dispose")); 1168getSchemaContextIfNotNull.TrueStatements.Add(assignSchemaContext); 1169getSchemaContextIfNotNull.TrueStatements.Add(xscReturnIfNotNull); 1178initSchemaContext.TrueStatements.Add(new CodeAssignStatement(xsc, typeof(XamlSchemaContext).New(AssemblyList))); 1257setPublicKeyTokenExp.TrueStatements.Add(