2 implementations of IProperty
Microsoft.Build (2)
Definition\ProjectProperty.cs (1)
22public abstract class ProjectProperty : IKeyed, IValued, IProperty, IEquatable<ProjectProperty>
Instance\ProjectPropertyInstance.cs (1)
24public class ProjectPropertyInstance : IKeyed, IValued, IProperty, IEquatable<ProjectPropertyInstance>, ITranslatable
102 references to IProperty
Microsoft.Build (46)
BackEnd\BuildManager\BuildParameters.cs (2)
427instance => ((IProperty)instance).EvaluatedValueEscaped); 462instance => ((IProperty)instance).EvaluatedValueEscaped);
BackEnd\Components\RequestBuilder\Lookup.cs (1)
227lookupHash[propertyName] = ((IProperty)property).EvaluatedValueEscaped;
BackEnd\Shared\BuildRequestConfiguration.cs (2)
397_project.SetProperty(property.Name, ((IProperty)property).EvaluatedValueEscaped); 458globalProperties.Add(property.Name, ((IProperty)property).EvaluatedValueEscaped);
Construction\Solution\SolutionProjectGenerator.cs (2)
24using IProperty = Microsoft.Build.Evaluation.IProperty; 2079properties[globalProperty.Name] = ((IProperty)globalProperty).EvaluatedValueEscaped;
Definition\Project.cs (5)
1114return ((IProperty)property).EvaluatedValueEscaped; 2128yield return new KeyValuePair<string, string>(property.Name, ((IProperty)property).EvaluatedValueEscaped); 2155dictionary[property.Name] = ((IProperty)property).EvaluatedValueEscaped; 2965if (existing == null || ((IProperty)existing).EvaluatedValueEscaped != escapedValue) 2967string originalValue = (existing == null) ? String.Empty : ((IProperty)existing).EvaluatedValueEscaped;
Definition\ProjectCollection.cs (1)
573dictionary[property.Name] = ((IProperty)property).EvaluatedValueEscaped;
Definition\ProjectProperty.cs (3)
101string IProperty.EvaluatedValueEscaped 123string IProperty.GetEvaluatedValueEscaped(IElementLocation location) 586return ((IProperty)this).EvaluatedValueEscaped;
Evaluation\ConditionEvaluator.cs (3)
192where P : class, IProperty 226where P : class, IProperty 387where P : class, IProperty
Evaluation\Evaluator.cs (6)
57where P : class, IProperty, IEquatable<P>, IValued 1199_data.SetProperty(environmentProperty.Name, ((IProperty)environmentProperty).EvaluatedValueEscaped, isGlobalProperty: false, mayBeReserved: false, isEnvironmentVariable: true, loggingContext: _evaluationLoggingContext); 1210_data.SetProperty(toolsetProperty.Name, ((IProperty)toolsetProperty).EvaluatedValueEscaped, false /* NOT global property */, false /* may NOT be a reserved name */, loggingContext: _evaluationLoggingContext); 1236_data.SetProperty(subToolsetProperty.Name, ((IProperty)subToolsetProperty).EvaluatedValueEscaped, false /* NOT global property */, false /* may NOT be a reserved name */, loggingContext: _evaluationLoggingContext); 1254_data.SetProperty(globalProperty.Name, ((IProperty)globalProperty).EvaluatedValueEscaped, true /* IS global property */, false /* may NOT be a reserved name */, loggingContext: _evaluationLoggingContext); 2147instance => ((IProperty)instance).EvaluatedValueEscaped),
Evaluation\Expander.cs (4)
133where P : class, IProperty 1129where T : class, IProperty 3154where T : class, IProperty 3222where T : class, IProperty
Evaluation\IEvaluatorData.cs (1)
26where P : class, IProperty, IEquatable<P>, IValued
Evaluation\ItemSpec.cs (2)
21where P : class, IProperty 573where P : class, IProperty
Evaluation\LazyItemEvaluator.cs (1)
27where P : class, IProperty, IEquatable<P>, IValued
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (1)
28where P : class, IProperty, IEquatable<P>, IValued
Instance\ProjectInstance.cs (4)
1084dictionary[property.Name] = ((IProperty)property).EvaluatedValueEscaped; 1666return ((IProperty)property).EvaluatedValueEscaped; 2551globalProperties[propertyInstance.Name] = ((IProperty)propertyInstance).EvaluatedValueEscaped; 3050((IProperty)property).EvaluatedValueEscaped,
Instance\ProjectPropertyInstance.cs (2)
98string IProperty.EvaluatedValueEscaped 114string IProperty.GetEvaluatedValueEscaped(IElementLocation location)
Instance\TaskRegistry.cs (5)
259where P : class, IProperty 293where P : class, IProperty 1613where P : class, IProperty 1639where P : class, IProperty 1675where P : class, IProperty
Utilities\Utilities.cs (1)
656if (item is IProperty property && !string.IsNullOrEmpty(property.Name))
Microsoft.Build.Engine.UnitTests (56)
Evaluation\ExpanderFunction_Tests.cs (56)
28Expander<IProperty, IItem>.Function<IProperty>.TryConvertToInt(null, out int actual).ShouldBeFalse(); 36Expander<IProperty, IItem>.Function<IProperty>.TryConvertToInt(value, out int actual).ShouldBeTrue(); 44Expander<IProperty, IItem>.Function<IProperty>.TryConvertToInt(value, out int actual).ShouldBeTrue(); 52Expander<IProperty, IItem>.Function<IProperty>.TryConvertToInt(value, out int actual).ShouldBeTrue(); 60Expander<IProperty, IItem>.Function<IProperty>.TryConvertToInt(value, out int actual).ShouldBeTrue(); 69Expander<IProperty, IItem>.Function<IProperty>.TryConvertToInt(value, out int actual).ShouldBeTrue(); 78Expander<IProperty, IItem>.Function<IProperty>.TryConvertToInt(value, out int actual).ShouldBeTrue(); 86Expander<IProperty, IItem>.Function<IProperty>.TryConvertToInt(value, out int actual).ShouldBeFalse(); 94Expander<IProperty, IItem>.Function<IProperty>.TryConvertToInt(value, out int actual).ShouldBeFalse(); 102Expander<IProperty, IItem>.Function<IProperty>.TryConvertToInt(value, out int actual).ShouldBeFalse(); 111Expander<IProperty, IItem>.Function<IProperty>.TryConvertToLong(null, out long actual).ShouldBeFalse(); 119Expander<IProperty, IItem>.Function<IProperty>.TryConvertToLong(value, out long actual).ShouldBeTrue(); 127Expander<IProperty, IItem>.Function<IProperty>.TryConvertToLong(value, out long actual).ShouldBeTrue(); 135Expander<IProperty, IItem>.Function<IProperty>.TryConvertToLong(value, out long actual).ShouldBeTrue(); 143Expander<IProperty, IItem>.Function<IProperty>.TryConvertToLong(value, out long actual).ShouldBeTrue(); 152Expander<IProperty, IItem>.Function<IProperty>.TryConvertToLong(value, out long actual).ShouldBeTrue(); 162_ = Should.NotThrow(() => Expander<IProperty, IItem>.Function<IProperty>.TryConvertToLong((double)long.MaxValue, out _)); 169bool result = Expander<IProperty, IItem>.Function<IProperty>.TryConvertToLong((double)longMaxValue, out long actual); 180bool result = Expander<IProperty, IItem>.Function<IProperty>.TryConvertToLong((double)longMaxValue, out long actual); 195Expander<IProperty, IItem>.Function<IProperty>.TryConvertToLong(value, out long actual).ShouldBeTrue(); 203Expander<IProperty, IItem>.Function<IProperty>.TryConvertToLong(value, out long actual).ShouldBeFalse(); 211Expander<IProperty, IItem>.Function<IProperty>.TryConvertToLong(value, out long actual).ShouldBeFalse(); 220Expander<IProperty, IItem>.Function<IProperty>.TryConvertToDouble(null, out double actual).ShouldBeFalse(); 228Expander<IProperty, IItem>.Function<IProperty>.TryConvertToDouble(value, out double actual).ShouldBeTrue(); 236Expander<IProperty, IItem>.Function<IProperty>.TryConvertToDouble(value, out double actual).ShouldBeTrue(); 244Expander<IProperty, IItem>.Function<IProperty>.TryConvertToDouble(value, out double actual).ShouldBeTrue(); 252Expander<IProperty, IItem>.Function<IProperty>.TryConvertToDouble(value, out double actual).ShouldBeTrue(); 270Expander<IProperty, IItem>.Function<IProperty>.TryConvertToDouble(value, out double actual).ShouldBeTrue();