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