2 writes to DefaultValue
Microsoft.Build.Tasks.Core (2)
XamlTaskFactory\Property.cs (1)
212
DefaultValue
= DefaultValue,
XamlTaskFactory\TaskParser.cs (1)
511
parameter.
DefaultValue
= baseProperty.Default;
6 references to DefaultValue
Microsoft.Build.Tasks.Core (4)
XamlTaskFactory\Property.cs (1)
212
DefaultValue =
DefaultValue
,
XamlTaskFactory\TaskGenerator.cs (3)
437
removeExisting.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(property.Name), new CodeSnippetExpression(property.
DefaultValue
)));
441
removeExisting.TrueStatements.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(property.Name), new CodeSnippetExpression(SurroundWithQuotes(property.
DefaultValue
))));
499
if (!String.IsNullOrEmpty(property.
DefaultValue
))
Microsoft.Build.Tasks.UnitTests (2)
XamlTaskFactory_Tests.cs (2)
236
Assert.Equal(String.Empty, properties.First.Value.
DefaultValue
); // "Switch should NOT have a default value"
261
Assert.Equal("true", properties.First.Value.
DefaultValue
); // "Switch should default to true"