1 interface inheriting from IItem
Microsoft.Build (1)
Evaluation\Conditionals\IItem.cs (1)
17internal interface IItem<M> : IItem
99 references to IItem
Microsoft.Build (71)
BackEnd\Components\RequestBuilder\BatchingEngine.cs (1)
412itemMetadataValues[metadataQualifiedName] = ((IItem)item).GetMetadataValueEscaped(metadataName);
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
480.Where(i => !excludesUnescapedForComparison.Contains(((IItem)i).EvaluatedInclude.NormalizeForPathComparison()))
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (3)
644bool outOfDate = IsOutOfDate(((IItem)upToDateInputItems[i]).EvaluatedIncludeEscaped, ((IItem)outputItems[i]).EvaluatedIncludeEscaped, upToDateInputItems[i].ItemType, outputItems[i].ItemType); 912yield return item == null ? null : ((IItem)item).EvaluatedIncludeEscaped;
Collections\IItemDictionary.cs (1)
16where T : class, IKeyed, IItem
Collections\ItemDictionary.cs (1)
33where T : class, IKeyed, IItem
Definition\Project.cs (5)
855return ((IItem)item).EvaluatedIncludeEscaped; 865return ((IItem)item).EvaluatedIncludeEscaped; 1093return ((IItem)item).GetMetadataValueEscaped(name); 1103return ((IItem)item).GetMetadataValueEscaped(name); 3543return ((IItem)items[0]).EvaluatedIncludeEscaped;
Definition\ProjectItem.cs (6)
215string IItem.EvaluatedIncludeEscaped 226string IItem.ProjectDirectory 441return Link != null ? Link.GetMetadataValue(name) : EscapingUtilities.UnescapeAll(((IItem)this).GetMetadataValueEscaped(name)); 479string IItem.GetMetadataValueEscaped(string name) 766string value = ((IItem)this).GetMetadataValueEscaped(name); 825_xml = _xml.ContainingProject.CreateItemElement(ItemType, ((IItem)this).EvaluatedIncludeEscaped);
Evaluation\ConditionEvaluator.cs (3)
193where I : class, IItem 227where I : class, IItem 388where I : class, IItem
Evaluation\Expander.cs (18)
134where I : class, IItem 558where T : class, IItem 631where T : class, IItem 653where S : class, IItem 654where T : class, IItem 1785where S : class, IItem 1835where S : class, IItem 1836where T : class, IItem 1888where S : class, IItem 1889where T : class, IItem 2002where S : class, IItem 2080where T : class, IItem 2133where S : class, IItem 2183where S : class, IItem 2235where S : class, IItem 2956where S : class, IItem 3029private IItem _sourceOfMetadata; 3039internal MetadataMatchEvaluator(string itemSpec, IItem sourceOfMetadata, IElementLocation elementLocation)
Evaluation\IEvaluatorData.cs (1)
27where I : class, IItem
Evaluation\IItemFactory.cs (2)
19where S : class, IItem 20where T : class, IItem
Evaluation\IItemProvider.cs (1)
14internal interface IItemProvider<T> where T : IItem
Evaluation\ItemSpec.cs (2)
22where I : class, IItem, IMetadataTable 574where I : class, IItem, IMetadataTable
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (1)
29where I : class, IItem
Instance\ImmutableProjectCollections\ImmutableItemDictionary.cs (2)
21where T : class, IKeyed, IItem 22where TCached : IKeyed, IItem
Instance\ProjectInstance.cs (5)
1614return ((IItem)item).EvaluatedIncludeEscaped; 1624return ((IItem)item).EvaluatedIncludeEscaped; 1645return ((IItem)item).GetMetadataValueEscaped(name); 1655return ((IItem)item).GetMetadataValueEscaped(name); 3372evaluatedIncludeEscaped = ((IItem)item).EvaluatedIncludeEscaped;
Instance\ProjectItemInstance.cs (10)
215string IItem.EvaluatedIncludeEscaped 337string IItem.ProjectDirectory 444string IItem.GetMetadataValueEscaped(string name) 973string IItem.EvaluatedInclude 982string IItem.EvaluatedIncludeEscaped 991string IItem.ProjectDirectory 1259string IItem.GetMetadataValue(string name) 1267string IItem.GetMetadataValueEscaped(string name) 2166TaskItem item = CreateItem(((IItem)source).EvaluatedIncludeEscaped, source, definingProject); 2191TaskItem item = CreateItem(((IItem)source).EvaluatedIncludeEscaped, source, definingProject);
Instance\TaskRegistry.cs (5)
260where I : class, IItem 294where I : class, IItem 1614where I : class, IItem 1640where I : class, IItem 1676where I : class, IItem
Logging\BaseConsoleLogger.cs (1)
624IItem iitem => iitem.EvaluatedInclude,
Logging\ParallelLogger\ParallelConsoleLogger.cs (1)
609IItem iitem => iitem.EvaluatedInclude, // ProjectItem
Utilities\Utilities.cs (1)
820if (item is IItem iitem)
Microsoft.Build.Engine.UnitTests (28)
Evaluation\ExpanderFunction_Tests.cs (28)
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();