71 references to CodeAssignStatement
Microsoft.Build.Tasks.Core (23)
system.design\stronglytypedresourcebuilder.cs (2)
467
init[1] = new
CodeAssignStatement
(field_resMgr, new CodeVariableReferenceExpression(tmpVarName));
482
culture.SetStatements.Add(new
CodeAssignStatement
(field_resCulture, newCulture));
XamlTaskFactory\TaskGenerator.cs (21)
451
removeExisting.TrueStatements.Add(new
CodeAssignStatement
(new CodeVariableReferenceExpression(property.Name), new CodeSnippetExpression(property.DefaultValue)));
455
removeExisting.TrueStatements.Add(new
CodeAssignStatement
(new CodeVariableReferenceExpression(property.Name), new CodeSnippetExpression(SurroundWithQuotes(property.DefaultValue))));
491
removeExisting.TrueStatements.Add(new
CodeAssignStatement
(new CodeVariableReferenceExpression(fallbackParameter.Key), new CodeVariableReferenceExpression(fallbackParameter.Value)));
600
CodeAssignStatement setStatement = new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(SwitchToAdd), property), new CodeSnippetExpression(SurroundWithQuotes(value)));
612
CodeAssignStatement setStatement = new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(SwitchToAdd), property), value);
701
var setInclude = new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(SwitchToAdd), "IncludeInCommandLine"), new CodePrimitiveExpression(true));
726
CodeAssignStatement setValue = new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(SwitchToAdd), referencedProperty), new CodePropertySetValueReferenceExpression());
745
var setToolName = new
CodeAssignStatement
(
787
isValid.TrueStatements.Add(new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(SwitchToAdd), IsValidProperty), new CodeSnippetExpression(IsOn)));
788
isValid.FalseStatements.Add(new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(SwitchToAdd), IsValidProperty), new CodeSnippetExpression(IsOff)));
791
var setToolName = new
CodeAssignStatement
(
811
var setToolName = new
CodeAssignStatement
(
871
var setToolSwitchNameGoodIndex = new
CodeAssignStatement
(
877
var setArgumentsGoodIndex = new
CodeAssignStatement
(
883
var setToolSwitchNameBadIndex = new
CodeAssignStatement
(
889
var setArgumentsBadIndex = new
CodeAssignStatement
(
905
var setSeparator = new
CodeAssignStatement
(
912
var setToolName = new
CodeAssignStatement
(
923
var setToolName = new
CodeAssignStatement
(
930
CodeAssignStatement setToolSwitchName = new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression(SwitchToAdd), SwitchValueProperty), property.SwitchName != String.Empty ? new CodeSnippetExpression(SurroundWithQuotes(property.Prefix + property.SwitchName)) : new CodeSnippetExpression(SurroundWithQuotes("")));
1057
CodeAssignStatement setToolName = new
CodeAssignStatement
(
PresentationBuildTasks (7)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (7)
980
CodeAssignStatement casES = new
CodeAssignStatement
(cvreES,
987
CodeAssignStatement casEvent = new
CodeAssignStatement
(cpreEvent,
995
CodeAssignStatement casHandler = new
CodeAssignStatement
(cpreHandler,
1193
CodeAssignStatement casName = new
CodeAssignStatement
(ceEvent, cceTarget);
1277
CodeAssignStatement casContentLoaded = new
CodeAssignStatement
(cfreContentLoaded, new CodePrimitiveExpression(true));
2616
CodeAssignStatement casCL = new
CodeAssignStatement
(new CodeFieldReferenceExpression(null, CONTENT_LOADED),
3137
CodeStatement csPropSet = new
CodeAssignStatement
(cprePropSet, ceValue);
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
1813
baseConstructor.Statements.Add(new
CodeAssignStatement
(new CodePropertyReferenceExpression(ThisReference, PropertyChangedEvent.Name), NullReference));
System.Windows.Forms.Design (6)
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
312
result = new
CodeAssignStatement
(targetExpression, arrayCreate);
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (1)
295
CodeAssignStatement assign =
new
(assignLhs, assignRhs);
System\ComponentModel\Design\Serialization\ContainerCodeDomSerializer.cs (1)
70
CodeAssignStatement assign =
new
(lhs, objCreate);
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (1)
350
CodeAssignStatement assign =
new
(propertyRef, serializedPropertyValue);
System\Resources\Tools\StronglyTypedResourceBuilder.cs (2)
618
new
CodeAssignStatement
(resourceManagerField, new CodeVariableReferenceExpression(tempVariableName))
634
culture.SetStatements.Add(new
CodeAssignStatement
(cultureInfoField, newCulture));
System.Windows.Forms.Design.Tests (34)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (34)
144
new
CodeAssignStatement
(new CodeVariableReferenceExpression("name1"), new CodeObjectCreateExpression(typeof(DataClass))),
148
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name1"), "DefaultStringValue"), new CodePrimitiveExpression(null)),
149
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name1"), "IntValue"), new CodePrimitiveExpression(1)),
150
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name1"), "StringValue"), new CodePrimitiveExpression("Value"))
158
new
CodeAssignStatement
(new CodeVariableReferenceExpression("name2"), new CodeObjectCreateExpression(typeof(DataClass))),
162
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name2"), "DefaultStringValue"), new CodePrimitiveExpression(null)),
163
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name2"), "IntValue"), new CodePrimitiveExpression(2)),
164
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name2"), "StringValue"), new CodePrimitiveExpression("OtherValue"))
246
new
CodeAssignStatement
(new CodeVariableReferenceExpression("name"), new CodeObjectCreateExpression(typeof(DataClass))),
250
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)),
251
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)),
252
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "StringValue"), new CodePrimitiveExpression("Value"))
348
new
CodeAssignStatement
(new CodeVariableReferenceExpression("name"), new CodeObjectCreateExpression(typeof(DataClass))),
352
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)),
353
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)),
354
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "StringValue"), new CodePrimitiveExpression("Value"))
393
new
CodeAssignStatement
(new CodeVariableReferenceExpression("name"), new CodeObjectCreateExpression(typeof(DataClass))),
397
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)),
398
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)),
399
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "StringValue"), new CodePrimitiveExpression("Value"))
443
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)),
444
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)),
445
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)),
489
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)),
490
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)),
491
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1))
534
new
CodeAssignStatement
(new CodeVariableReferenceExpression("name"), new CodeObjectCreateExpression(typeof(DataClass))),
538
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)),
539
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)),
540
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "StringValue"), new CodePrimitiveExpression("Value"))
583
new
CodeAssignStatement
(new CodeVariableReferenceExpression("name"), new CodeObjectCreateExpression(typeof(DataClass))),
587
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "DefaultStringValue"), new CodePrimitiveExpression(null)),
588
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "IntValue"), new CodePrimitiveExpression(1)),
589
new
CodeAssignStatement
(new CodePropertyReferenceExpression(new CodeVariableReferenceExpression("name"), "StringValue"), new CodePrimitiveExpression("Value"))